Wenn ich Firebase initialisiere, erhalte ich diese Fehlermeldung:
FirebaseError: Firebase: Error (auth/invalid-api-key).
Meine Konfigurationsdatei sieht so aus:
Code: Select all
// firebaseConfig.js
import { initializeApp } from "firebase/app";
import { getAnalytics } from "firebase/analytics";
const firebaseConfig = {
apiKey: "AIzaSyXXXXXX-your-key-hidden",
authDomain: "rebornfounder-xxxx.firebaseapp.com",
projectId: "rebornfounder-xxxx",
storageBucket: "rebornfounder-xxxx.appspot.com",
messagingSenderId: "XXXXXXXXXXXX",
appId: "1:XXXXXXXXXXXX:web:XXXXXXXXXXXXXX",[enter image description here][1]
measurementId: "G-XXXXXXXXXX"
};
[enter image description here][2]
const app = initializeApp(firebaseConfig);
const analytics = getAnalytics(app);
[1]: https://i.sstatic.net/jK0J1ZFd.png
[2]: https://i.sstatic.net/5vLWayHO.png
Mobile version