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:
TypeScript Issue:
When I try to use the correct Google OAuth format with space separation:
Solution: prompt: "select_account consent" as "select_account+consent", but i think this is a bug
as there is a clear mismatch between their types and the actual Google OAuth API requirements.
better-auth: "^1.2.12",
next: "15.3.5",
node: "22.9.0",
pnpm: "10.9.0"
Solution:Jump to solution
in better-auth 1.3.2 version error is fixed. So guys you ahve to just update ypur package.
4 Replies