Google Provider prompt parameter type mismatch causes OAuth error
I'm encountering an issue with the Google OAuth provider configuration in better-auth. According to the documentation, to always get a refresh token, I should set prompt to "select_account+consent" as in documentation, but this causes a Google OAuth error.
Error from Google:
Invalid parameter value for prompt: Invalid prompt: select_account+consent
Error 400: invalid_request
TypeScript Issue:
When I try to use the correct Google OAuth format with space separation:
1 Reply
Solution: prompt: "select_account consent" as "select_account+consent",