You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are proposing to rename the values that the mode parameter takes from button and widget to active and passive respectively.
awaitnavigator.credentials.get({identity: {providers: [{// ...}],mode: "active"// defaults to "passive"}});
The reasoning behind this is we feel the names button and widget are too tied to browser UI implementation whereas active and passive better represent the behavior of the FedCM API when these modes are specified.
active implies getting the user to login more actively and if they are currently logged out, we would show a more prominent UI gated behind user activation.
passive implies getting the user to login more passively and if they are currently logged out, we wouldn’t show any UI (modulo the login status API). This is the default value.
This parameter can also be extended to include other modes, if needed. We are open to hearing any and all thoughts.
The text was updated successfully, but these errors were encountered:
I tried to write down @bvandersloot-mozilla 's argument here #6, so that I can close this issue with the convergence that we got at the CG meeting to rename from button/widget to active/passive mode, and we can follow up on the TPAC harmonization session and #6 separately.
Closing, let me know if there is something that I failed to capture.
We are proposing to rename the values that the
mode
parameter takes frombutton
andwidget
toactive
andpassive
respectively.The reasoning behind this is we feel the names
button
andwidget
are too tied to browser UI implementation whereasactive
andpassive
better represent the behavior of the FedCM API when these modes are specified.active
implies getting the user to login more actively and if they are currently logged out, we would show a more prominent UI gated behind user activation.passive
implies getting the user to login more passively and if they are currently logged out, we wouldn’t show any UI (modulo the login status API). This is the default value.This parameter can also be extended to include other modes, if needed. We are open to hearing any and all thoughts.
The text was updated successfully, but these errors were encountered: