[GH-ISSUE #485] Missing refresh access token method implementation #8289

Closed
opened 2026-04-13 03:21:54 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @zAlweNy26 on GitHub (Nov 10, 2024).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/485

Is your feature request related to a problem? Please describe.
I'm not finding an easy way to refresh the access token for the social providers.

Describe the solution you'd like
I saw there is
691510711e/packages/better-auth/src/oauth2/types.ts (L40)
but it's optional and not implemented anywhere, is it normal? I think it should be required to easily refresh the access tokens of the implemented social providers. I can open a PR to implement them if you like.

Originally created by @zAlweNy26 on GitHub (Nov 10, 2024). Original GitHub issue: https://github.com/better-auth/better-auth/issues/485 **Is your feature request related to a problem? Please describe.** I'm not finding an easy way to refresh the access token for the social providers. **Describe the solution you'd like** I saw there is https://github.com/better-auth/better-auth/blob/691510711e6030a38c17b01f998cc62823bb1a06/packages/better-auth/src/oauth2/types.ts#L40 but it's optional and not implemented anywhere, is it normal? I think it should be required to easily refresh the access tokens of the implemented social providers. I can open a PR to implement them if you like.
GiteaMirror added the locked label 2026-04-13 03:21:54 -05:00
Author
Owner

@Bekacru commented on GitHub (Nov 11, 2024):

Currently, none of the providers implement this internally, so if you need to refresh tokens, you'll have to handle that yourself. But, I can see this being an integration on Better Auth's side in the future. Let's leave this issue open.

<!-- gh-comment-id:2467362193 --> @Bekacru commented on GitHub (Nov 11, 2024): Currently, none of the providers implement this internally, so if you need to refresh tokens, you'll have to handle that yourself. But, I can see this being an integration on Better Auth's side in the future. Let's leave this issue open.
Author
Owner

@paambaati commented on GitHub (Jan 18, 2025):

@Bekacru Do you have any guidance on what this would look like?

<!-- gh-comment-id:2599588787 --> @paambaati commented on GitHub (Jan 18, 2025): @Bekacru Do you have any guidance on what this would look like?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#8289