ApiAuthenticator

public protocol ApiAuthenticator

Abstracts how the SDK authenticates with the API.

If an application has an existing authentication/authorisation workflow then an Adapter class can be used to integrate that workflow into the SDK to provide the necessary authentication

  • T

    The type of authentication details

    Declaration

    Swift

    associatedtype T
  • Called by the SDK to obtain authentication details eg: an access token

    Declaration

    Swift

    func authenticate(completion: @escaping ApiCompletion<T>)