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

    completionHandler

    Closure that accepts an optional AccessToken or optional Error as parameters. AccessToken returns a token and an expiry date if applicable. Error returns nil if the current token can be returned.