AccessTokenProvider
@objc(VSSAccessTokenProvider)
public protocol AccessTokenProvider
This protocol is responsible for providing AccessToken
-
Provides access token
Declaration
Swift
@objc func getToken(with tokenContext: TokenContext, completion: @escaping (AccessToken?, Error?) -> Void)
Parameters
tokenContext
TokenContext
, provides context explaining why token is neededcompletion
Completion closure, called with access token or corresponding error