[GH-ISSUE #74] OAuth Error (oauth_code_verification_failed) #8115

Closed
opened 2026-04-13 03:10:28 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @xKesvaL on GitHub (Oct 3, 2024).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/74

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). Original GitHub issue: https://github.com/better-auth/better-auth/issues/74 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.
GiteaMirror added the locked label 2026-04-13 03:10:28 -05:00
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.

<!-- gh-comment-id:2391467498 --> @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.

<!-- gh-comment-id:2394275281 --> @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 :)

<!-- gh-comment-id:2394283362 --> @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#8115