From 7af9b702760e2edbbf11e34033dc21644b5681a9 Mon Sep 17 00:00:00 2001 From: Alexandria D'antonio Date: Sun, 11 Aug 2024 09:49:27 -0400 Subject: [PATCH] add firebase credentials --- src/api/config.js | 14 +++++++------- src/api/useAuth.jsx | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/api/config.js b/src/api/config.js index 2f15680..b7580ea 100644 --- a/src/api/config.js +++ b/src/api/config.js @@ -4,13 +4,13 @@ import { getAuth } from 'firebase/auth'; // Your web app's Firebase configuration const firebaseConfig = { - apiKey: 'FILL_ME_IN', - authDomain: 'FILL_ME_IN', - projectId: 'FILL_ME_IN', - storageBucket: 'FILL_ME_IN', - messagingSenderId: 'FILL_ME_IN', - appId: 'FILL_ME_IN', -}; + apiKey: "AIzaSyCNcvVYUKCY13rkYYJ70zkIAQYs-M8E_AQ", + authDomain: "tcl-77-smart-shopping-list.firebaseapp.com", + projectId: "tcl-77-smart-shopping-list", + storageBucket: "tcl-77-smart-shopping-list.appspot.com", + messagingSenderId: "35210747522", + appId: "1:35210747522:web:e39f63e23150653f0f1e9b" + }; // Initialize Firebase const app = initializeApp(firebaseConfig); diff --git a/src/api/useAuth.jsx b/src/api/useAuth.jsx index 5b1b123..ca07ae6 100644 --- a/src/api/useAuth.jsx +++ b/src/api/useAuth.jsx @@ -1,6 +1,6 @@ import { useEffect, useState } from 'react'; import { auth } from './config.js'; -import { GoogleAuthProvider, signInWithRedirect } from 'firebase/auth'; +import { GoogleAuthProvider, signInWithPopup } from 'firebase/auth'; import { addUserToDatabase } from './firebase.js'; /** @@ -11,7 +11,7 @@ import { addUserToDatabase } from './firebase.js'; export const SignInButton = () => (