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 viaauthenticationUpdate: @escaping (NetworkError) -> Void
closure defined during networking SDK initialisationDeclaration
Swift
func provideAccessToken() -> String?
Return Value
The access token
String
, ornil
if the access token is not available.