-
Notifications
You must be signed in to change notification settings - Fork 473
FxA AccountObserver.onAuthenticated: what is considered a newAccount? Update docs #4069
Comments
…uthenticated signature. The `newAccount` parameter was added. I don't know what a new account is so I filed mozilla-mobile/android-components#4069. That being said, it doesn't seem like it'd affect our code so I didn't make any changes for it.
When the app is cold booted, the account is re-authenticated so the the If you logged into an account (newAccount is true), logged out, logged in again with the same or another account, you would get
Any new login is considered a new account.
It won't fire for this.
This case isn't really possible, but if you have a fennec install and you re-authenticated that account in a new browser (e.g. Fenix, Fire TV), then technically that's a new account added to the app. |
…ignature. The `newAccount` parameter was added. I don't know what a new account is so I filed mozilla-mobile/android-components#4069. That being said, it doesn't seem like it'd affect our code so I didn't make any changes for it.
Thanks for the explanation, Jonathan. I think the action item here is to update the documentation. |
4122: Closes #4069: Update docs for newAccount param r=jonalmeida a=jonalmeida Co-authored-by: Jonathan Almeida <[email protected]>
4122: Closes #4069: Update docs for newAccount param r=jonalmeida a=jonalmeida Co-authored-by: Jonathan Almeida <[email protected]>
Re-opening since the variable name is still misleading so we should rename that too. |
Closing again since this was completed in another PR. |
In 7.0.0, the
AccountObserver
interface added anewAccount
parameter to theonAuthenticated
method. However, I'm not sure what's considered anewAccount
. The docs say,Is a new account an account that:
We should clarify what a
newAccount
is and update the docs.@grigoryk Any thoughts?
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: