AWSCognitoAuthUserSession
Objective-C
@interface AWSCognitoAuthUserSession : NSObject
Swift
class AWSCognitoAuthUserSession : NSObject
A User session. Encapsulates all tokens (id, access and refresh tokens) for a user.
-
The id token *
Declaration
Objective-C
@property (nonatomic, readonly, nullable) AWSCognitoAuthUserSessionToken *idToken;
Swift
var idToken: AWSCognitoAuthUserSessionToken? { get }
-
The access token *
Declaration
Objective-C
@property (nonatomic, readonly, nullable) AWSCognitoAuthUserSessionToken *accessToken;
Swift
var accessToken: AWSCognitoAuthUserSessionToken? { get }
-
The refresh token *
Declaration
Objective-C
@property (nonatomic, readonly, nullable) AWSCognitoAuthUserSessionToken *refreshToken;
Swift
var refreshToken: AWSCognitoAuthUserSessionToken? { get }
-
Date this session expires
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSDate *expirationTime;
Swift
var expirationTime: Date? { get }
-
Username for this session
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *username;
Swift
var username: String? { get }