firebase / firebaseui-web

FirebaseUI is an open-source JavaScript library for Web that provides simple, customizable UI bindings on top of Firebase SDKs to eliminate boilerplate code and promote best practices.
https://firebase.google.com/
Apache License 2.0
4.58k stars 1.06k forks source link

Ability To Specify continueUrl for password reset #526

Open mdrideout opened 5 years ago

mdrideout commented 5 years ago

Is your feature request related to a problem? Please describe. When one sends a verification email, for email / password verification, one can specify a "continueUrl" - on the email verification confirmation page, this renders a button linking the user back to a specific page on the website.

I would like to request this option be available for the password reset functionality built into firebaseui.

Describe the solution you'd like The config for the email verification is as follows:

var actionCodeSettings = {
    url: "https://www.example.com",
};

await firebaseAuth().currentUser.sendEmailVerification(actionCodeSettings);

For password resets, this URL could be specified in the firebaseui config where other settings are specified for email / password auth.

ui.start('#firebaseui-auth-container', {
  signInOptions: [
    {
      provider: firebase.auth.EmailAuthProvider.PROVIDER_ID,
      requireDisplayName: false,
      continueUrl: "https://www.example.com/"
    }
  ]
});

Describe alternatives you've considered Alternatives are to not use Firebaseui, because firebase ui essentially takes over where forgotten password resets can be handled with its interface.

Additional context Google references documentation for this capability here and here

bojeil-google commented 5 years ago

Thanks for the request. We definitely want to provide the ability to set the ActionCodeSettings for password reset flows, not only for setting the continue URL but also for specifying whether you also want to handle the link from a mobile app.

deepakputhraya commented 5 years ago

@bojeil-google Are there any plans to implement this feature? Any suggested workarounds to add continueUrl? Any way I can help with this feature implemented?

bojeil-google commented 5 years ago

Hey @deepakputhraya, thanks for your interest. We are currently working on extending support for Apple sign-in. That is time sensitive to many customers. Let's revisit this after.

jits commented 4 years ago

Are there plans to support this any time soon? Currently the reset password flows are not ideal. Anything that could be done to speed this up? I'm happy to contribute a PR, with some guidance.

rosalyntan commented 4 years ago

This is being tracked internally at b/168630895. However, if you would like to contribute a PR, our contribution guide can be found here: https://github.com/firebase/firebaseui-web/blob/master/CONTRIBUTING.md.

RafaelMiquelino commented 4 years ago

This is being tracked internally at b/168630895. However, if you would like to contribute a PR, our contribution guide can be found here: https://github.com/firebase/firebaseui-web/blob/master/CONTRIBUTING.md.

Is there any plan for this to be released any time soon?

malcolmdeck commented 4 years ago

I don't think that we have a timeline for implementation of this particular feature request at this time. If that changes, we'll try to let you know.

abnersouza commented 3 years ago

@bojeil-google @malcolmdeck Any updates? I'm also looking for continueUrl implementation.