CognitoUserPoolTokens class abstract

Cognito credentials of the active user.

Annotations
  • @zAmplifySerializable
  • @_CognitoSignInMethodSerializer()
  • @_JsonWebTokenSerializer()

Constructors

CognitoUserPoolTokens({CognitoSignInMethod signInMethod = CognitoSignInMethod.default$, required JsonWebToken accessToken, required String refreshToken, required JsonWebToken idToken})
Cognito credentials of the active user.
factory
CognitoUserPoolTokens.build([void updates(CognitoUserPoolTokensBuilder)])
Cognito credentials of the active user.
factory
CognitoUserPoolTokens.fromJson(Map<String, Object?> json)
Cognito credentials of the active user.
factory

Properties

accessToken JsonWebToken
The Cognito access token.
no setter
hashCode int
The hash code for this object.
no setterinherited
idToken JsonWebToken
The Cognito ID token.
no setter
refreshToken String
The Cognito refresh token.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signInMethod CognitoSignInMethod
The method by which the user signed in and retrieved these tokens.
no setter
userId String
The Cognito user's ID.
no setter
username String
The Cognito user's username.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rebuild(dynamic updates(CognitoUserPoolTokensBuilder)) CognitoUserPoolTokens
Rebuilds the instance.
inherited
toBuilder() CognitoUserPoolTokensBuilder
Converts the instance to a builder B.
inherited
toJson() Map<String, Object?>
Serializes this as a JSON object.
toString() String
A string representation of this object.
override
validate() → void
Validates the tokens against the client state.

Operators

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