[PR #3167] [MERGED] feat(oauth): extended oauth2 tokens with refresh_token_expires_in field #21584

Closed
opened 2026-04-15 20:28:09 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3167
Author: @0xCodeMaieutics
Created: 6/25/2025
Status: Merged
Merged: 7/9/2025
Merged by: @Bekacru

Base: mainHead: main


📝 Commits (4)

  • 4874bf8 docs: corrected github user email scope name
  • 4bf6faa docs: cubic dev suggestion
  • cea6223 Merge branch 'better-auth:main' into main
  • 2eb693e feat(oauht2/utils): added refresh_token_expires_in field in getOAuth2Tokens

📊 Changes

1 file changed (+3 additions, -0 deletions)

View changed files

📝 packages/better-auth/src/oauth2/utils.ts (+3 -0)

📄 Description

In this PR refresh_token_expires_in is added as an additional field to OAuth2 tokens object.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/3167 **Author:** [@0xCodeMaieutics](https://github.com/0xCodeMaieutics) **Created:** 6/25/2025 **Status:** ✅ Merged **Merged:** 7/9/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (4) - [`4874bf8`](https://github.com/better-auth/better-auth/commit/4874bf8c0bedabf8b0804e9467f346ec6739ed2a) docs: corrected github user email scope name - [`4bf6faa`](https://github.com/better-auth/better-auth/commit/4bf6faa9e76cdf1cb9e84056b64ae29751bb68aa) docs: cubic dev suggestion - [`cea6223`](https://github.com/better-auth/better-auth/commit/cea62236b61641aa24744f05d003a1e107b309fe) Merge branch 'better-auth:main' into main - [`2eb693e`](https://github.com/better-auth/better-auth/commit/2eb693e7fd9a86083ae3f9d2d4c130424e65ef1a) feat(oauht2/utils): added `refresh_token_expires_in` field in `getOAuth2Tokens` ### 📊 Changes **1 file changed** (+3 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/oauth2/utils.ts` (+3 -0) </details> ### 📄 Description In this PR `refresh_token_expires_in` is added as an additional field to OAuth2 tokens object. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 20:28:09 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#21584