CognitoUserSession class

Constructors

CognitoUserSession(CognitoIdToken idToken, CognitoAccessToken accessToken, {CognitoRefreshToken? refreshToken, int? clockDrift})

Properties

accessToken CognitoAccessToken
getter/setter pair
clockDrift int?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
idToken CognitoIdToken
getter/setter pair
refreshToken CognitoRefreshToken?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

calculateClockDrift() int
Calculate computer's clock drift
getAccessToken() CognitoAccessToken
Get the session's access token
getClockDrift() int?
Get the session's clock drift
getIdToken() CognitoIdToken
Get the session's Id token
getRefreshToken() CognitoRefreshToken?
Get the session's refresh token
invalidateToken() → void
Invalidate this tokens. All succeeding calls to isValid() will return false. Use cognitoUser .getSession() to refresh the cognito session with the cognito server.
isValid() bool
Checks to see if the session is still valid based on session expiry information found in tokens and the current time (adjusted with clock drift)
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