SignInOptions

Options for Sponsorkit::sign_in.

On this page

Options for Sponsorkit::sign_in.

use sponsorkit::SignInOptions;

pub struct SignInOptions {
    pub provider: Option<Provider>,
    pub method: Option<SignInMethod>,
    pub cancel: Option<CancellationToken>,
}

Fields#

provider#

pub provider: Option<Provider>

Skips the provider picker. Signing in with a second provider while signed in adds that identity to the session.

method#

pub method: Option<SignInMethod>

Overrides the instance's SignInMethod for this call.

cancel#

pub cancel: Option<CancellationToken>

Cancels a pending sign-in; it then fails with ErrorCode::Cancelled. Dropping the sign_in future also stops it (without a result).

Trait implementations#

  • impl Clone for SignInOptions
  • impl Debug for SignInOptions
  • impl Default for SignInOptions