2025-02-11 14:53:53 +08:00
|
|
|
import { initializeApp } from "https://www.gstatic.com/firebasejs/11.3.0/firebase-app.js";
|
|
|
|
import { getDatabase } from "https://www.gstatic.com/firebasejs/11.3.0/firebase-database.js";
|
2025-02-13 16:08:29 +08:00
|
|
|
import {
|
|
|
|
getAuth,
|
|
|
|
sendSignInLinkToEmail,
|
|
|
|
GoogleAuthProvider,
|
|
|
|
signInWithPopup,
|
|
|
|
signOut as _signOut,
|
|
|
|
} from "https://www.gstatic.com/firebasejs/11.3.0/firebase-auth.js";
|
2025-02-02 04:43:06 +08:00
|
|
|
|
|
|
|
const firebaseConfig = {
|
|
|
|
apiKey: "AIzaSyARm-eSymd2Q3AyxJXiAiiUzsXGmc6T72I",
|
|
|
|
authDomain: "echoesbehindcloseddoors.firebaseapp.com",
|
2025-02-13 16:08:29 +08:00
|
|
|
databaseURL:
|
|
|
|
"https://echoesbehindcloseddoors-default-rtdb.asia-southeast1.firebasedatabase.app",
|
2025-02-02 04:43:06 +08:00
|
|
|
projectId: "echoesbehindcloseddoors",
|
|
|
|
storageBucket: "echoesbehindcloseddoors.firebasestorage.app",
|
|
|
|
messagingSenderId: "905742343227",
|
2025-02-13 16:08:29 +08:00
|
|
|
appId: "1:905742343227:web:19d04f77371ef1952c901e",
|
2025-02-02 04:43:06 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
export const app = initializeApp(firebaseConfig);
|
|
|
|
export const auth = getAuth(app);
|
2025-02-13 16:08:29 +08:00
|
|
|
export const signOut = _signOut;
|
|
|
|
export const authWithMagicLink = sendSignInLinkToEmail;
|
|
|
|
export const authWithGooglePopup = signInWithPopup;
|
|
|
|
export const authProviderGoogle = GoogleAuthProvider;
|
2025-02-11 14:53:53 +08:00
|
|
|
export const database = getDatabase(app);
|