FxaEvent

sealed class FxaEvent

Fxa event

These are the events that consumers send to crate::FxaStateMachine::process_event

Inheritors

Types

Link copied to clipboard
data class BeginOAuthFlow(val service: String, val scopes: List<String>, val entrypoint: String) : FxaEvent

Begin an oauth flow

Link copied to clipboard
data class BeginPairingFlow(val pairingUrl: String, val service: String, val scopes: List<String>, val entrypoint: String) : FxaEvent

Begin an oauth flow using a URL from a pairing code

Link copied to clipboard

Force a call to FirefoxAccount::get_profile

Link copied to clipboard

Cancel an OAuth flow.

Link copied to clipboard

Check the authorization status for a connected account.

Link copied to clipboard
object Companion
Link copied to clipboard
data class CompleteOAuthFlow(val code: String, val state: String) : FxaEvent

Complete an OAuth flow.

Link copied to clipboard

Disconnect the user

Link copied to clipboard
data class Initialize(val deviceConfig: DeviceConfig) : FxaEvent

Initialize the state machine. This must be the first event sent.

Link copied to clipboard
data class WebChannelPasswordChange(val jsonPayload: String) : FxaEvent

An fxaccounts:change_password WebChannel message arrived on the device that just changed its password. json_payload is the data object of that message and contains the new session token. The state machine swaps the session token for a new refresh token and re-initialises the device record.