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

FxaAuthData

data class FxaAuthData (source)

Captures basic OAuth authentication data (code, state) and any additional data FxA passes along.

Constructors

Name Summary
<init> FxaAuthData(authType: AuthType, code: String, state: String, declinedEngines: Set<SyncEngine>? = null)
Captures basic OAuth authentication data (code, state) and any additional data FxA passes along.

Properties

Name Summary
authType val authType: AuthType
Type of authentication which caused this object to be created.
code val code: String
OAuth code.
declinedEngines val declinedEngines: Set<SyncEngine>?
An optional list of SyncEngines that user declined to sync.
state val state: String
OAuth state.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.