We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52044dc commit 24d5f8eCopy full SHA for 24d5f8e
1 file changed
lib/firebase/auth.ts
@@ -11,6 +11,8 @@ export function onAuthStateChanged(callback: (authUser: User | null) => void) {
11
// Function for Google sign-in and role check
12
export async function signInWithGoogle(): Promise<{ isAdmin: boolean }> {
13
const provider = new GoogleAuthProvider();
14
+ provider.setCustomParameters({ display: "popup" }); // Force popup
15
+
16
17
try {
18
const result: UserCredential = await signInWithPopup(auth, provider);
0 commit comments