android-components / mozilla.components.concept.sync / AccessTokenInfo

AccessTokenInfo

data class AccessTokenInfo (source)

The result of authentication with FxA via an OAuth flow.

Constructors

Name Summary
<init> AccessTokenInfo(scope: String, token: String, key: OAuthScopedKey?, expiresAt: Long)
The result of authentication with FxA via an OAuth flow.

Properties

Name Summary
expiresAt val expiresAt: Long
The expiry date timestamp of this token since unix epoch (in seconds).
key val key: OAuthScopedKey?
An OAuthScopedKey if present.
scope val scope: String
token val token: String
The access token produced by the flow.

Extension Functions

Name Summary
asSyncAuthInfo fun AccessTokenInfo.asSyncAuthInfo(tokenServerUrl: String): SyncAuthInfo
Converts a generic AccessTokenInfo into a Firefox Sync-friendly SyncAuthInfo instance which may be used for data synchronization.