SidewalkAuthProviding
public protocol SidewalkAuthProviding : AnyObject
Authentication provider for Amazon Sidewalk. Must be provided.
-
Retrieves the auth token needed for communication with Amazon Sidewalk cloud.
Consumers are required to provide a valid token to the SDK on demand. This will be called whenever we require it to make an API call to the Amazon Sidewalk backend, as well as when we automatically retry on an unauthorized response.
Declaration
Swift
func getToken(completion: @escaping (Result<String, Error>) -> Void)
Parameters
completion
A closure that provides an Auth Token in String form or Error.