Trait LoginClient
Source pub trait LoginClient {
// Required methods
fn login_oauth_2<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
provider: &'life1 str,
access_token: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<UnsafeToken, Error<LoginLoginOauth2Error>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn current_login_token<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Token, Error<LoginCurrentLoginTokenError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn start_login_oauth_2<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<OAuth2Data, Error<LoginStartLoginOauth2Error>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn complete_login_oauth_2<'life0, 'life1, 'async_trait>(
&'life0 self,
value: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<UnsafeToken, Error<LoginCompleteLoginOauth2Error>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn oauth_2_web_flow_start<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
provider: &'life1 str,
redirect: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<WebFlowAuthorizeUrlResponse, Error<LoginOauth2WebFlowStartError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn oauth_2_web_flow_callback_github<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
code: &'life1 str,
state: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<WebFlowCallbackSuccessResponse, Error<LoginOauth2WebFlowCallbackGithubError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn oauth_2_web_flow_poll<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<UnsafeToken, Error<LoginOauth2WebFlowPollError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}