Skip to content

Commit 24d5f8e

Browse files
committed
forcing pop up to fix the iframe errro
1 parent 52044dc commit 24d5f8e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/firebase/auth.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ export function onAuthStateChanged(callback: (authUser: User | null) => void) {
1111
// Function for Google sign-in and role check
1212
export async function signInWithGoogle(): Promise<{ isAdmin: boolean }> {
1313
const provider = new GoogleAuthProvider();
14+
provider.setCustomParameters({ display: "popup" }); // Force popup
15+
1416

1517
try {
1618
const result: UserCredential = await signInWithPopup(auth, provider);

0 commit comments

Comments
 (0)