getToken

abstract suspend fun getToken(): SidewalkResult<String>

Retrieves the auth token needed for communication with Amazon Sidewalk cloud.

Consumers are required to provide a valid token to Amazon Sidewalk Mobile SDK on demand. This will be called whenever we require it to make an API call to the Amazon Sidewalk backend.