I am getting a message in production when using oauth for google. I figured out this has come down to WASP not adding the scope param to the string is sends to google. This is working fine in development on machine and it puts on the proper scope=openid+profile+email. Any idea why this would be happening? It might be an initialization order thing since I am also using other google auth libraries. I think it is finding the client and secret fine, but the dev using .env file while the prod uses fly secrets.
But been stuck on this one for a while
WASP 16.5. Fly.io delpoy.
export function getCustomGoogleAuthConfig() {
return {
scopes: ['openid', 'profile', 'email'],
}
}
export const userSignupFields = defineUserSignupFields({
email: (data) => data.profile.email,
displayName: (data) => data.profile.name,
})
Message from google but its because WASP is not passing it.
Missing required parameter: scope Learn more about this error