Skip to content

Commit

Permalink
feat: Update Login
Browse files Browse the repository at this point in the history
  • Loading branch information
spotandjake committed Sep 13, 2024
1 parent dcb8e76 commit 0f3efbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Files/Components/Login_Btn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
GoogleAuthProvider,
GithubAuthProvider,
TwitterAuthProvider,
signInWithRedirect
signInWithPopup
} from 'firebase/auth';

type Provider = 'Google' | 'Github' | 'Twitter';
Expand All @@ -31,7 +31,7 @@ const Button = (props: MyProps) => {
break;
}
return (
<div className={Style.join(' ')} onClick={() => (signInWithRedirect(auth, Auth))}>
<div className={Style.join(' ')} onClick={() => (signInWithPopup(auth, Auth))}>
<div>
<picture>
<img alt={Type} src={Img} width="18" height="18" />
Expand Down
2 changes: 1 addition & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.

0 comments on commit 0f3efbc

Please sign in to comment.