CognitoAuthSession class

The current Cognito auth session, with AWS credentials and User Pool tokens of the active user.

Inheritance

Constructors

CognitoAuthSession({required bool isSignedIn, required AuthResult<CognitoUserPoolTokens> userPoolTokensResult, required AuthResult<String> userSubResult, required AuthResult<AWSCredentials> credentialsResult, required AuthResult<String> identityIdResult})
The current Cognito auth session, with AWS credentials and User Pool tokens of the active user.
const

Properties

credentials → AWSCredentials?
The AWS credentials.
no setter
credentialsResult AuthResult<AWSCredentials>
The AWS credentials Result.
final
hashCode int
The hash code for this object.
no setterinherited
identityId String?
The AWS identity ID.
no setter
identityIdResult AuthResult<String>
The AWS identity ID Result.
final
isSignedIn bool
finalinherited
props List<Object?>
The type's equatable properties.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userPoolTokens CognitoUserPoolTokens?
The User Pool tokens.
no setter
userPoolTokensResult AuthResult<CognitoUserPoolTokens>
The User Pool tokens Result.
final
userSub String?
The user ID (subject).
no setter
userSubResult AuthResult<String>
The user ID (subject) Result.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
Serializes this as a JSON object.
toString() String
A string representation of this object.
override

Operators

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