WaspW
Wasp10mo ago
Ringo

Google OAuth : Missing required parameter: scope

Hi - I am working on a project locally and Google OAuth suddenly stopped working and shows an error saying “Access blocked: Authorization Error” and “Missing required parameter: scope

It worked fine yesterday and looking through the docs, it seems like the config in code and on GCloud are okay. I am using the saas template. Wasp version 0.16.2. The app starts fine without errors on
wasp start
, login with email & password is fine.

Confirmed that the Client ID & secret are .env.server

Snippet of main.wasp:

       google: { // Guide for setting up Auth via Google
        userSignupFields: import { getGoogleUserFields } from "@src/auth/userSignupFields",
        configFn: import { getGoogleAuthConfig } from "@src/auth/userSignupFields",
      },


Snippet of userSignupFields.ts:
const googleDataSchema = z.object({
  profile: z.object({
    email: z.string(),
  }),
});


Redirect URL and scope setup in GCloud in screenshots. The email I'm logging in to is one of the test users.
image.png
image.png
image.png
Was this page helpful?