getToken

abstract suspend fun getToken(): SidewalkResult<String>

Retrieves the auth token needed for communication with Sidewalk cloud.

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