AuthService<T> class

Constructors

AuthService({required NextAuthConfig config, required OAuthProviderRegistry oauthRegistry, required TokenCache tokenCache})

Properties

hashCode int
The hash code for this object.
no setterinherited
logger Logger?
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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