由GenerateMailVerificationLink()生成的URL
是否有一种方法可以配置GenerateMailverificationLink()
以生成不同环境的不同URL?
https://firebase.google.com/docs/docs/docs/auth/admin/电子邮件action-links
看起来唯一的方法是通过遵循以下步骤在Firebase Console中进行配置。
身份验证>模板>自定义操作URL
这只允许我每个firebase项目设置一个URL。
但是,当我从Localhost运行时,我希望通过Local -Host域生成链接。
Is there a way to configure the generateEmailVerificationLink()
to generate different URLs for different environments?
https://firebase.google.com/docs/auth/admin/email-action-links
It looks like the only way is to configure it in the Firebase Console by following the steps below.
Authentication > Templates > customize action URL
This only allows me to set one URL per Firebase project.
However, when run from localhost, I want the link to be generated with the localhost domain.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您无法根据任何环境设置该URL。然而ActionCodesettings_interface“ rel =“ nofollow noreferrer”>
actioncodesettings
,因此使用链接后,您将重定向回本地站点。You cannot set that URL based on any environment. You can however set the redirect URL to
localhost
inactionCodeSettings
so you are redirected back to your local site after the link is used.