File tree 2 files changed +9
-9
lines changed
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,13 @@ import { getAuth } from 'firebase/auth';
4
4
5
5
// Your web app's Firebase configuration
6
6
const firebaseConfig = {
7
- apiKey : 'FILL_ME_IN' ,
8
- authDomain : 'FILL_ME_IN' ,
9
- projectId : 'FILL_ME_IN' ,
10
- storageBucket : 'FILL_ME_IN' ,
11
- messagingSenderId : 'FILL_ME_IN' ,
12
- appId : 'FILL_ME_IN' ,
13
- } ;
7
+ apiKey : "AIzaSyCNcvVYUKCY13rkYYJ70zkIAQYs-M8E_AQ" ,
8
+ authDomain : "tcl-77-smart-shopping-list.firebaseapp.com" ,
9
+ projectId : "tcl-77-smart-shopping-list" ,
10
+ storageBucket : "tcl-77-smart-shopping-list.appspot.com" ,
11
+ messagingSenderId : "35210747522" ,
12
+ appId : "1:35210747522:web:e39f63e23150653f0f1e9b"
13
+ } ;
14
14
15
15
// Initialize Firebase
16
16
const app = initializeApp ( firebaseConfig ) ;
Original file line number Diff line number Diff line change 1
1
import { useEffect , useState } from 'react' ;
2
2
import { auth } from './config.js' ;
3
- import { GoogleAuthProvider , signInWithRedirect } from 'firebase/auth' ;
3
+ import { GoogleAuthProvider , signInWithPopup } from 'firebase/auth' ;
4
4
import { addUserToDatabase } from './firebase.js' ;
5
5
6
6
/**
@@ -11,7 +11,7 @@ import { addUserToDatabase } from './firebase.js';
11
11
export const SignInButton = ( ) => (
12
12
< button
13
13
type = "button"
14
- onClick = { ( ) => signInWithRedirect ( auth , new GoogleAuthProvider ( ) ) }
14
+ onClick = { ( ) => signInWithPopup ( auth , new GoogleAuthProvider ( ) ) }
15
15
>
16
16
Sign In
17
17
</ button >
You can’t perform that action at this time.
0 commit comments