android-components / mozilla.components.service.fxa / asSyncAuthInfo

asSyncAuthInfo

fun AccessTokenInfo.asSyncAuthInfo(tokenServerUrl: String): SyncAuthInfo (source)

Converts a generic AccessTokenInfo into a Firefox Sync-friendly SyncAuthInfo instance which may be used for data synchronization.

Exceptions

AuthException - if AccessTokenInfo didn’t have key information.

Return An SyncAuthInfo which is guaranteed to have a sync key.