ConstAccessTokenProvider
@objc(VSSConstAccessTokenProvider)
public final class ConstAccessTokenProvider : NSObject, AccessTokenProvider
Implementation of AccessTokenProvider which provides constant AccessToken
-
AccessToken
Declaration
Swift
@objc public let accessToken: AccessToken
-
Initializer
Declaration
Swift
@objc public init(accessToken: AccessToken)
Parameters
accessToken
Access Token
-
Provides cached access token
Declaration
Swift
public func getToken(with tokenContext: TokenContext, completion: @escaping (AccessToken?, Error?) -> Void)
Parameters
tokenContext
do not have any influence on result in this implementation
completion
completion closure, called with cashed access token