Error when trying to login with google oauth

I recently migrated my codebase from 0.12.4 to 0.13.0 and I'm now having issues when I attempt to login or signup through google.

My google config looks like this:
export function getGoogleAuthConfig() {
  return {
    scopes: ['profile', 'email'], // must include at least 'profile' for Google
  };
}


My google get user fields looks like this:
export const getGoogleUserFields = defineUserSignupFields({
  email: (data: any) => data.profile.emails[0].value,
  username: (data: any) => data.profile.displayName,
  isAdmin: (data: any) => adminEmails.includes(data.profile.emails[0].value),
});


and I've added the correct redirect uri to my google cloud console as well.

Can someone help me figure out what's going wrong here.
Was this page helpful?