ShortLivedAccessTokenProvider
public class ShortLivedAccessTokenProvider : AccessTokenProvider
Wrapper for short-lived token.
-
Declaration
Swift
public var accessToken: String { get }
-
Declaration
Swift
public init(token: DropboxAccessToken, tokenRefresher: AccessTokenRefreshing)
Parameters
token
The
DropboxAccessToken
object for a short-lived token.tokenRefresher
Helper object that refreshes a token over network.
-
Declaration
Swift
public func refreshAccessTokenIfNecessary(completion: @escaping DropboxOAuthCompletion)