DescopeAuth class abstract

General authentication functions

Constructors

DescopeAuth.new()

Properties

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

Methods

logout(String refreshJwt) Future<void>
Logs out from an active DescopeSession.
me(String refreshJwt) Future<DescopeUser>
Returns details about the user.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refreshSession(String refreshJwt) Future<RefreshResponse>
Refreshes a DescopeSession.
revokeSessions(RevokeType revokeType, String refreshJwt) Future<void>
It's a good security practice to remove refresh JWTs from the Descope servers if they become redundant before expiry. This function will called with a RevokeType, usually RevokeType.currentSession, and a valid refresh JWT when the user wants to sign out of the application. For example:
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited