@@ -468,62 +468,6 @@ non HTTP/HTTPS environments.
468
468
469
469
> ** Note:** The beta test program for this API is currently closed.
470
470
471
- One-tap sign-up provides seamless authentication flows to
472
- your users with Google's one tap sign-up and automatic sign-in APIs.
473
- With one tap sign-up, users are prompted to create an account with a dialog
474
- that's inline with FirebaseUI NASCAR screen. With just one tap, they get a
475
- secure, token-based, passwordless account with your service, protected by their
476
- Google Account. As the process is frictionless, users are much more likely to
477
- register.
478
- Returning users are signed in automatically, even when they switch devices or
479
- platforms, or after their session expires.
480
- One-tap sign-up integrates with FirebaseUI and if you request Google OAuth
481
- scopes, you will still get back the expected Google OAuth access token even if
482
- the user goes through the one-tap flow. However, in that case 'redirect' flow is
483
- always used even when 'popup' is specified.
484
- In addition, if you choose to force prompt for Google sign-in, one-tap auto
485
- sign-in will be automatically disabled.
486
- One-tap is an additive feature and is only supported in the latest evergreen
487
- modern browser environments.
488
-
489
- The following example shows how to configure one-tap sign-up with FirebaseUI.
490
- Along with the corresponding one-tap ` credentialHelper ` , ` clientId ` and
491
- ` authMethod ` have to be provided with the Firebase Google provider:
492
-
493
- ``` javascript
494
- ui .start (' #firebaseui-auth-container' , {
495
- signInOptions: [
496
- {
497
- // Google provider must be enabled in Firebase Console to support one-tap
498
- // sign-up.
499
- provider: firebase .auth .GoogleAuthProvider .PROVIDER_ID ,
500
- // Required to enable this provider in one-tap sign-up.
501
- authMethod: ' https://accounts.google.com' ,
502
- // Required to enable ID token credentials for this provider.
503
- // This can be obtained from the Credentials page of the Google APIs
504
- // console.
505
- clientId: ' xxxxxxxxxxxxxxxxx.apps.googleusercontent.com'
506
- },
507
- firebase .auth .FacebookAuthProvider .PROVIDER_ID ,
508
- firebase .auth .TwitterAuthProvider .PROVIDER_ID ,
509
- firebase .auth .GithubAuthProvider .PROVIDER_ID ,
510
- firebase .auth .EmailAuthProvider .PROVIDER_ID ,
511
- ],
512
- // Required to enable one-tap sign-up credential helper.
513
- credentialHelper: firebaseui .auth .CredentialHelper .GOOGLE_YOLO
514
- });
515
- // Auto sign-in for returning users is enabled by default except when prompt is
516
- // not 'none' in the Google provider custom parameters. To manually disable:
517
- ui .disableAutoSignIn ();
518
- ```
519
-
520
- Auto sign-in for returning users can be disabled by calling
521
- ` ui.disableAutoSignIn() ` . This may be needed if the FirebaseUI sign-in page is
522
- being rendered after the user signs out.
523
-
524
- To see FirebaseUI in action with one-tap sign-up, check out the FirebaseUI
525
- [ demo app] ( https://fir-ui-demo-84a6c.firebaseapp.com/ ) .
526
-
527
471
| Credential Helper | Value |
528
472
| ------------------| ------------------------------------------------------|
529
473
| accountchooser.com| ` firebaseui.auth.CredentialHelper.ACCOUNT_CHOOSER_COM ` |
0 commit comments