Skip to content

Commit

Permalink
sign in method change
Browse files Browse the repository at this point in the history
  • Loading branch information
bhaskaraa45 committed Jul 18, 2024
1 parent 5ce607c commit af32793
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/Login.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { Button, Container } from '@material-ui/core';
import { getAuth, signInWithRedirect, GoogleAuthProvider } from 'firebase/auth';
import { getAuth, GoogleAuthProvider, signInWithPopup } from 'firebase/auth';
import logo from '../logo.png';

const googleProvider = new GoogleAuthProvider();
Expand All @@ -11,7 +11,7 @@ const login = () => {
provider.addScope('profile');
provider.addScope('email');

signInWithRedirect(auth, provider)
signInWithPopup(auth, provider)
.then(() => {
console.log('Success');
})
Expand Down

0 comments on commit af32793

Please sign in to comment.