android-components / mozilla.components.service.fxa.manager / FxaAccountManager / signInWithShareableAccountAsync

signInWithShareableAccountAsync

fun signInWithShareableAccountAsync(fromAccount: ShareableAccount): Deferred<Boolean> (source)

Uses a provided fromAccount to sign-in into a corresponding FxA account without any required user input. Once sign-in completes, any registered AccountObserver.onAuthenticated listeners will be notified and authenticatedAccount will refer to the new account. This may fail in case of network errors, or if provided credentials are not valid.

Return A deferred boolean flag indicating success (if true) of the sign-in operation.