admin管理员组文章数量:1287623
I'm trying to authenticate users using Email Login from an extension. I followed the documentation () on this topic and tried to import it in my background.js worker file.
import { getAuth, signInWithEmailAndPassword } from 'firebase/auth/web-extension';
This doesn't work as I get the following error message:
Uncaught TypeError: Failed to resolve module specifier "firebase/auth/web-extension". Relative references must start with either "/", "./", or "../".
Now I tried importing it using CDN but then I get a security exception with my content_security_policy because I think Manifest V3 is not supporting outside scripts.
What am I doing wrong here?
本文标签: javascriptFirebase Authentication in Extension for EMail Login with Manifest V3Stack Overflow
版权声明:本文标题:javascript - Firebase Authentication in Extension for E-Mail Login with Manifest V3 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741315543a2371891.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论