Auth0MultiFactorVerifyResponse class
Represents the successful response from verifying a multi-factor authentication (MFA) challenge with Auth0.
This class encapsulates the tokens returned by Auth0 after successfully verifying an MFA challenge. It includes the standard OAuth 2.0 tokens along with OpenID Connect identity tokens.
Example usage:
final response = Auth0MultiFactorVerifyResponse.fromJson(jsonData);
print('Access Token: ${response.accessToken}');
print('ID Token: ${response.idToken}');
Constructors
- Auth0MultiFactorVerifyResponse({required String accessToken, required String idToken, String? refreshToken, String? tokenType, int? expiresIn})
- Creates an Auth0MultiFactorVerifyResponse instance.
-
Auth0MultiFactorVerifyResponse.fromJson(Map<
String, dynamic> json) -
Parses a JSON map into an Auth0MultiFactorVerifyResponse instance.
factory
Properties
- accessToken → String
-
The OAuth 2.0 access token used to authenticate API requests.
final
- expiresIn → int?
-
The lifetime in seconds of the access token.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- idToken → String
-
The OpenID Connect ID token containing user profile information.
final
- refreshToken → String?
-
The OAuth 2.0 refresh token that can be used to obtain new access tokens.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tokenType → String?
-
The type of token returned (typically "Bearer").
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