FirebaseUI-Angular icon indicating copy to clipboard operation
FirebaseUI-Angular copied to clipboard

How to integrate this using EmailAuthProvider and recaptcha v3?

Open k-lombard opened this issue 1 year ago • 0 comments

I want to essentially use Angular firebase-ui where a score-based recaptcha v3 callout is made at the appropriate time when using the EmailAuthProvider.

I am trying this currently:

const firebaseUiAuthConfig: firebaseui.auth.Config = {
  signInFlow: 'popup',
  signInOptions: [
    {
      provider: firebase.auth.EmailAuthProvider.PROVIDER_ID,
      recaptchaParameters: {
        type: 'image', // 'audio'
        size: 'normal', // 'invisible' or 'compact'
        badge: 'bottomleft' //' bottomright' or 'inline' applies to invisible.
      },
    }
  ],
  
  //term of service
  tosUrl: '<your-tos-link>',
  //privacy url
  privacyPolicyUrl: '<your-privacyPolicyUrl-link>',
  //credentialHelper:             firebaseui.auth.CredentialHelper.ACCOUNT_CHOOSER_COM
  credentialHelper: firebaseui.auth.CredentialHelper.NONE
};

k-lombard avatar Jul 05 '23 18:07 k-lombard