AuthService<T> class
Constructors
- AuthService({required NextAuthConfig config, required OAuthProviderRegistry oauthRegistry, required TokenCache tokenCache})
Properties
Methods
-
getCSRFToken(
{bool forceNew = false}) → Future< String?> - request CSRF token from server
-
getSession(
) → Future< T?> - get session data from server
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
signIn(
String provider, {EmailSignInOptions? emailOptions, CredentialsSignInOptions? credentialsOptions, OAuthSignInOptions? oauthOptions}) → Future< SignInResponse> - Sign in with email, credentials or OAuth provider
-
signOut(
) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
-
updateSession(
Map< String, dynamic> data) → Future<T?> - Update session data
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited