AccessTokenInfo

data class AccessTokenInfo(var scope: String, var token: String, var key: ScopedKey?, var expiresAt: Long)

An OAuth access token, with its associated keys and metadata.

This struct represents an FxA OAuth access token, which can be used to access a resource or service on behalf of the user. For example, accessing the user's data in Firefox Sync an access token for the scope https:///identity.mozilla.com/apps/sync along with the associated encryption key.

Constructors

Link copied to clipboard
constructor(scope: String, token: String, key: ScopedKey?, expiresAt: Long)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The expiry time of the token, in seconds.

Link copied to clipboard

The client-side encryption key associated with this scope.

Link copied to clipboard

The scope of access granted by token.

Link copied to clipboard

The access token itself.