CommunicationTokenCredentialProviding
public protocol CommunicationTokenCredentialProviding : Cancellable
Protocol defining the shape of credentials used with Azure Communication Services.
-
Retrieve an access token from the credential.
Declaration
Swift
func token(completionHandler: @escaping CommunicationTokenCompletionHandler)Parameters
completionHandlerClosure that accepts an optional
AccessTokenor optionalErroras parameters.AccessTokenreturns a token and an expiry date if applicable.Errorreturnsnilif the current token can be returned.
View on GitHub