CognitoAuthSession class

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

Inheritance

Constructors

CognitoAuthSession.new({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

credentialsResult AuthResult<AWSCredentials>
The AWS credentials Result.
final
hashCode int
The hash code for this object.
no setterinherited
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
userPoolTokensResult AuthResult<CognitoUserPoolTokens>
The User Pool tokens Result.
final
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