TokenType enum
Token types available in Kinde authentication.
Defines the different types of tokens that can be retrieved from the authentication state.
Values
- idToken → const TokenType
-
ID Token - Contains user identity information.
The ID token is a JSON Web Token (JWT) that contains claims about the authenticated user's identity and profile information.
See: https://openid.net/specs/openid-connect-core-1_0.html#IDToken
const TokenType('id_token', 'ID Token containing user identity and profile information') - accessToken → const TokenType
-
Access Token - Used for API authentication.
The access token is used to authenticate API requests to protected resources. It represents the authorization granted to the client application.
See: https://oauth.net/2/access-tokens/
const TokenType('access_token', 'Access Token for authenticating API requests')
Properties
- description → String
-
Human-readable description of the token type and its purpose.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String
-
The string value of the token type.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns the string value of the token type.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited