BeamsTokenProvider
@objc
public final class BeamsTokenProvider : NSObject, TokenProvider
Used to generate tokens for users to authenticate against.
-
The authentication endpoint URL
String.Declaration
Swift
public let authURL: String -
Fetch a token for a given user to authenticate against.
Declaration
Swift
public func fetchToken(userId: String, completionHandler completion: @escaping (String, Error?) -> Void) throwsParameters
userIdThe user ID
String.completionA closure containing a valid token
Stringor anError.
View on GitHub
BeamsTokenProvider Class Reference