OAuth Error (oauth_code_verification_failed) #31

Closed
opened 2026-03-13 07:27:48 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @xKesvaL on GitHub (Oct 3, 2024).

I've tried both with Elysia and Hono but I can't make Google OAuth2 work, I always get the same error :

image

My google oauth scopes seem fine:

image

And it seems like I'm not the only one having these kinds of problems: #24

https://github.com/xKesvaL/supacoach/tree/xkesval/auth-error
https://github.com/xKesvaL/supacoach/tree/xkesval/auth-error-hono

Here are two branches in my repo where I can reproduce the issue.

Originally created by @xKesvaL on GitHub (Oct 3, 2024). I've tried both with Elysia and Hono but I can't make Google OAuth2 work, I always get the same error : ![image](https://github.com/user-attachments/assets/3a7d3c81-000f-47f8-98b5-823cac1b7511) My google oauth scopes seem fine: ![image](https://github.com/user-attachments/assets/8d200aa1-3397-4cb2-bf11-c0a14506cd47) And it seems like I'm not the only one having these kinds of problems: #24 https://github.com/xKesvaL/supacoach/tree/xkesval/auth-error https://github.com/xKesvaL/supacoach/tree/xkesval/auth-error-hono Here are two branches in my repo where I can reproduce the issue.
Author
Owner

@Bekacru commented on GitHub (Oct 3, 2024):

It seems the issue was with NODE_ENV not being set correctly, which caused secure cookies to be used in development. This should be resolved in the latest update.

@Bekacru commented on GitHub (Oct 3, 2024): It seems the issue was with NODE_ENV not being set correctly, which caused secure cookies to be used in development. This should be resolved in the latest update.
Author
Owner

@Bekacru commented on GitHub (Oct 4, 2024):

I'm gonna close this. feel free to re-open if it's still the case.

@Bekacru commented on GitHub (Oct 4, 2024): I'm gonna close this. feel free to re-open if it's still the case.
Author
Owner

@xKesvaL commented on GitHub (Oct 4, 2024):

Completely forgot to close this, but it was indeed fixed! Thanks :)

@xKesvaL commented on GitHub (Oct 4, 2024): Completely forgot to close this, but it was indeed fixed! Thanks :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#31