JwtContext class

Context provided to the JwtConfig.extraClaimsProvider.

This class contains the contextual information available when a refresh token is being created, allowing the provider to make informed decisions about which claims to include.

Constructors

JwtContext({required UuidValue authUserId, required String method, required Set<Scope> scopes, Map<String, dynamic>? extraClaims})
Creates a new authentication context.
const

Properties

authUserId → UuidValue
The authenticated user ID.
final
extraClaims → Map<String, dynamic>?
Extra claims provided programmatically via the createTokens method.
final
hashCode → int
The hash code for this object.
no setterinherited
method → String
The authentication method used (e.g., "email", "google", "apple").
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scopes → Set<Scope>
The scopes granted to this authentication session.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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