由GenerateMailVerificationLink()生成的URL

发布于 2025-02-07 17:39:32 字数 437 浏览 1 评论 0原文

是否有一种方法可以配置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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

余罪 2025-02-14 17:39:32

您无法根据任何环境设置该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 in actionCodeSettings so you are redirected back to your local site after the link is used.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文