auth icon indicating copy to clipboard operation
auth copied to clipboard

Email change doesn't allow proper UI implementation

Open mghizzo opened this issue 3 years ago • 0 comments

Feature request

Is your feature request related to a problem? Please describe.

I got an issue while I was trying to implement an email change flow for my app. Since I have the "Double confirm email changes" setting on, the user must click two links in two different emails and that's exactly what I want. The issue is to implement something to let the user know what he should do. After the user clicks the first email from the old email he gets redirected to "Site URL" with #message=Confirmation+link+accepted.+Please+proceed+to+confirm+link+sent+to+the+other+email appended. This is not very useful since it's difficult to access and in my case doesn't allow me to make a proper page with translation and custom messages.

Describe the solution you'd like

Email change flow should not be triggered from update() method and should instead have his own method which allows to pass a redirectTo option like resetPasswordForEmail() method.

Describe alternatives you've considered

Looking at another BaaS project which is still under development (Pocketbase), they've implemented:

This way they allow a more customizable flow. They also allow variable customization in the email template solving the issue described above.

Screenshot

mghizzo avatar Aug 22 '22 10:08 mghizzo