Skip to content

Commit

Permalink
Update Login.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisarsh1 committed Nov 20, 2024
1 parent 9a633c7 commit 892b12c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions client/src/components/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,11 @@ function Login() {
async function loginWithGithub() {
setLoading(true);



try {


await signIn('github')
} catch (error) {
// display error message to user
Expand All @@ -176,9 +180,9 @@ function Login() {
useEffect(() => {

if (session) {

setName(session.user.name);
setEmail(session.user.email);
setName(session.user.name);



}
Expand Down

0 comments on commit 892b12c

Please sign in to comment.