Firebase redirect user to a page after clicking verification link

折月煮酒 提交于 2020-06-08 08:06:12

问题


I'm using firebase in my web app with Ionic and I would like to redirect the user to a specific page (the login page, in my case) after he clicks on the link in the verification email.
At the moment, when the user clicks on the verification link, he is redirected on another browser page that says that he has confirmed the email.

I would like to redirect him directly to a page of my web app, without passing through that confirmation.
Is it possible to do that?


回答1:


Yes it's possible. Look in the firebase.console on the left for "Authentication". Then find "Templates" and look for "Email address verification". I think it's default opened. On the template you will see a pensil, click on this button. After that you can change your template however you want. At the bottom you will find the link "customize action URL". Open this link, paste your URL in the modal window and save. That's it.

First Steps

Last Steps



来源:https://stackoverflow.com/questions/47329158/firebase-redirect-user-to-a-page-after-clicking-verification-link

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!