Firebase-Fehler: „API-Schlüssel nicht gültig. Bitte überprüfen Sie Ihre Konfiguration“ (Expo React Native)JavaScript

Javascript-Forum
Anonymous
 Firebase-Fehler: „API-Schlüssel nicht gültig. Bitte überprüfen Sie Ihre Konfiguration“ (Expo React Native)

Post by Anonymous »

Ich erstelle meine mobile App RebornFounder™ mit React Native mit Expo und Firebase.
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

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post