SnapscreenAccessToken

@interface SnapscreenAccessToken : NSObject

Represents an access token for accessing the Snapscreen API.

Note: This class is only intended for internal use and should not be used by SDK consumers!

  • The actual access token

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nonnull) NSString *accessToken;

    Swift

    var accessToken: String { get }
  • The token type

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nonnull) NSString *tokenType;

    Swift

    var tokenType: String { get }
  • Expiration date of this token

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nonnull) NSDate *expirationDate;

    Swift

    var expirationDate: Date { get }
  • Refresh token used for obtaining a new refresh token

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nonnull) NSString *refreshToken;

    Swift

    var refreshToken: String { get }
  • Initializer

    Declaration

    Objective-C

    - (instancetype _Nonnull)initWithAccessToken:(NSString *_Nonnull)accessToken
                                       tokenType:(NSString *_Nonnull)tokenType
                                    refreshToken:(NSString *_Nonnull)refreshToken
                                           scope:(NSString *_Nullable)scope
                                       expiresIn:(NSNumber *_Nonnull)expiresIn;

    Swift

    init(accessToken: String, tokenType: String, refreshToken: String, scope: String?, expiresIn: NSNumber)