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


fun accountNeedsReauth(): Boolean (source)

Indicates if account needs to be re-authenticated via beginAuthenticationAsync. Most common reason for an account to need re-authentication is a password change.

TODO this may return a false-positive, if we’re currently going through a recovery flow. Prefer to be notified of auth problems via AccountObserver, which is reliable.

Return A boolean flag indicating if account needs to be re-authenticated.