Trait SessionsService

Source
pub trait SessionsService:
    Send
    + Sync
    + 'static {
Show 17 methods // Required methods fn register_with_email<'life0, 'async_trait>( &'life0 self, request: Request<RegisterWithEmailRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn complete_register_with_email<'life0, 'async_trait>( &'life0 self, request: Request<CompleteRegisterWithEmailRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<NewUserSessionToken>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn login_with_email_options<'life0, 'async_trait>( &'life0 self, request: Request<LoginWithEmailOptionsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<LoginWithEmailOptionsResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn login_with_email_and_password<'life0, 'async_trait>( &'life0 self, request: Request<LoginWithEmailAndPasswordRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<NewUserSessionToken>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn login_with_magic_link<'life0, 'async_trait>( &'life0 self, request: Request<LoginWithMagicLinkRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn complete_login_with_magic_link<'life0, 'async_trait>( &'life0 self, request: Request<CompleteLoginWithMagicLinkRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<NewUserSessionToken>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn login_with_google<'life0, 'async_trait>( &'life0 self, request: Request<LoginWithGoogleRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<LoginWithGoogleResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn complete_login_with_google<'life0, 'async_trait>( &'life0 self, request: Request<CompleteLoginWithGoogleRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<CompleteLoginWithGoogleResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn login_with_webauthn<'life0, 'async_trait>( &'life0 self, request: Request<LoginWithWebauthnRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<NewUserSessionToken>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn create_user_session_request<'life0, 'async_trait>( &'life0 self, request: Request<CreateUserSessionRequestRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<UserSessionRequest>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_user_session_request<'life0, 'async_trait>( &'life0 self, request: Request<GetUserSessionRequestRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<UserSessionRequest>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_user_session_request_by_code<'life0, 'async_trait>( &'life0 self, request: Request<GetUserSessionRequestByCodeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<UserSessionRequest>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn approve_user_session_request_by_code<'life0, 'async_trait>( &'life0 self, request: Request<ApproveUserSessionRequestByCodeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<UserSessionRequest>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn complete_user_session_request<'life0, 'async_trait>( &'life0 self, request: Request<CompleteUserSessionRequestRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<NewUserSessionToken>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn validate_mfa_for_user_session<'life0, 'async_trait>( &'life0 self, request: Request<ValidateMfaForUserSessionRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<UserSession>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn refresh_user_session<'life0, 'async_trait>( &'life0 self, request: Request<Empty>, ) -> Pin<Box<dyn Future<Output = Result<Response<NewUserSessionToken>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn invalidate_user_session<'life0, 'async_trait>( &'life0 self, request: Request<Empty>, ) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with SessionsServiceServer.

Required Methods§

Source

fn register_with_email<'life0, 'async_trait>( &'life0 self, request: Request<RegisterWithEmailRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn complete_register_with_email<'life0, 'async_trait>( &'life0 self, request: Request<CompleteRegisterWithEmailRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<NewUserSessionToken>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn login_with_email_options<'life0, 'async_trait>( &'life0 self, request: Request<LoginWithEmailOptionsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<LoginWithEmailOptionsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn login_with_email_and_password<'life0, 'async_trait>( &'life0 self, request: Request<LoginWithEmailAndPasswordRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<NewUserSessionToken>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn login_with_google<'life0, 'async_trait>( &'life0 self, request: Request<LoginWithGoogleRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<LoginWithGoogleResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn complete_login_with_google<'life0, 'async_trait>( &'life0 self, request: Request<CompleteLoginWithGoogleRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<CompleteLoginWithGoogleResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn login_with_webauthn<'life0, 'async_trait>( &'life0 self, request: Request<LoginWithWebauthnRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<NewUserSessionToken>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn create_user_session_request<'life0, 'async_trait>( &'life0 self, request: Request<CreateUserSessionRequestRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<UserSessionRequest>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_user_session_request<'life0, 'async_trait>( &'life0 self, request: Request<GetUserSessionRequestRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<UserSessionRequest>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_user_session_request_by_code<'life0, 'async_trait>( &'life0 self, request: Request<GetUserSessionRequestByCodeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<UserSessionRequest>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn approve_user_session_request_by_code<'life0, 'async_trait>( &'life0 self, request: Request<ApproveUserSessionRequestByCodeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<UserSessionRequest>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn complete_user_session_request<'life0, 'async_trait>( &'life0 self, request: Request<CompleteUserSessionRequestRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<NewUserSessionToken>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn validate_mfa_for_user_session<'life0, 'async_trait>( &'life0 self, request: Request<ValidateMfaForUserSessionRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<UserSession>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn refresh_user_session<'life0, 'async_trait>( &'life0 self, request: Request<Empty>, ) -> Pin<Box<dyn Future<Output = Result<Response<NewUserSessionToken>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn invalidate_user_session<'life0, 'async_trait>( &'life0 self, request: Request<Empty>, ) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§