无法从 Firebase 模拟器打开电子邮件登录链接

Mar*_*che 5 firebase firebase-tools firebase-authentication

我在使用带有(无密码)电子邮件链接登录的 firebase 身份验证模拟器时遇到问题。一切似乎都工作正常:sendSignInLinkToEmail(auth, email, actionCodeSettings)模拟器 shell 为我提供了一个链接,例如

\n
To sign in as test@test.de, follow this link: http://localhost:9099/emulator/action?mode=signIn&lang=en&oobCode=bXfR9zhWzkvm9APe_7jsM6Ks3UTyi2gsobaW3FMrVG4HUsXXnZdMoK&apiKey=fake-api-key&continueUrl=localhost%3A3000%2FfinishSignUp%3FcartId%3D1234\n
Run Code Online (Sandbox Code Playgroud)\n

但是,当我尝试在浏览器中打开此链接时,Chrome 会尝试打开一个应用程序来处理此链接。火狐浏览器 说:

\n
Firefox doesn\xe2\x80\x99t know how to open this address, because one of the following protocols (http) isn\xe2\x80\x99t associated with any program or is not allowed in this context.You might need to install other software to open this address.\n
Run Code Online (Sandbox Code Playgroud)\n

我是否错过了什么或者其他人也遇到过这种情况?

\n