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