Google Auth The requested action is invalid
11:58 18 Jul 2023

So I'm using the firebase authentication with google sign in, svelte-kit, and when ever I try to sign in, it either immediately closes, or a couple of times has a popup with The requested action is invalid.

I'm using Stack Blitz, and the auth appears to go through {proj}.firebase.app What's Causing the issue?

code

import { getAuth, signInWithPopup, GoogleAuthProvider } from "firebase/auth";
const provider = new GoogleAuthProvider();
const auth = getAuth();
function signin(){
            signInWithPopup(auth, provider)
            .then((result) => {
                const credential = GoogleAuthProvider.credentialFromResult(result);
                const token = credential.accessToken;
                const user = result.user;
            }).catch((error) => {
                const errorCode = error.code;
                const errorMessage = error.message;
                const email = error.customData.email;
                const credential = GoogleAuthProvider.credentialFromError(error);
            });
        }

click btn

firebase authentication google-cloud-platform