AccessTokenProviding

public protocol AccessTokenProviding : AnyObject

A protocol defining the functionality for providing an access token.

This is required for networking SDK to properly authenticate with API services.

  • Provides up-to-date access token.

    Object implementing this protocol should provide access token and store it securely on its side. If invalid access token will be provided, EPINetworking will inform client via authenticationUpdate: @escaping (NetworkError) -> Void closure defined during networking SDK initialisation

    Declaration

    Swift

    func provideAccessToken() -> String?

    Return Value

    The access token String, or nil if the access token is not available.