pilcrowonpaper / arctic

OAuth 2.0 clients for popular providers

Repository from Github https://github.compilcrowonpaper/arcticRepository from Github https://github.compilcrowonpaper/arctic

invalid_grant when using also for google oauth #78

francelwebdev opened this issue · comments

I highly doubt that this an issue with Arctic. Invalid grant is a catch-all error. Check that your client ID, client secret, and redirect URIs are actually defined and matches the one in the console. Make sure your code verifier is also correct. I can't help further without any code

Hi @pilcrowonpaper

here is the code, I still have the same error.
google client Id, google clientSecret and redirectUri are well defined and correct.

Screenshot from 2024-06-19 14-12-20

I faced this issue and turns out I had the code verifier cookie accidentally set to state instead of the generated code verifier. Hope this helps