[PR #6964] [MERGED] docs: OAuth Migration improvements #23896

Closed
opened 2026-04-15 22:02:54 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6964
Author: @dvanmali
Created: 12/23/2025
Status: Merged
Merged: 12/23/2025
Merged by: @dvanmali

Base: canaryHead: oAuthMigration


📝 Commits (4)

  • e583c1e docs: oauth2.1 migration guide improvements
  • 9fae01c style: match function names
  • 7aa2e00 docs: import location of jwt
  • 366c757 docs: cubic suggestion

📊 Changes

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

View changed files

📝 docs/content/docs/plugins/oauth-provider.mdx (+20 -3)

📄 Description

Minor improvements to the documentation, specifically the migration plan


Summary by cubic

Improved the OAuth Provider migration guide with a ready-to-use hashing function, clearer token migration steps, and a corrected jwt import path.

  • Migration
    • Added a defaultHasher TypeScript snippet to convert plain client secrets to SHA-256 base64Url.
    • Updated token migration examples to use defaultHasher for access and refresh tokens.
    • Fixed the example to import jwt from better-auth/plugins.
    • Clarified that database changes match the “From OIDC Provider Plugin” section.

Written for commit 366c757173. Summary will update automatically on new commits.


🔄 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/6964 **Author:** [@dvanmali](https://github.com/dvanmali) **Created:** 12/23/2025 **Status:** ✅ Merged **Merged:** 12/23/2025 **Merged by:** [@dvanmali](https://github.com/dvanmali) **Base:** `canary` ← **Head:** `oAuthMigration` --- ### 📝 Commits (4) - [`e583c1e`](https://github.com/better-auth/better-auth/commit/e583c1e20b7dd44c731d1c78b2d6d87715bc702f) docs: oauth2.1 migration guide improvements - [`9fae01c`](https://github.com/better-auth/better-auth/commit/9fae01c685b9d8001a3ab0a670f24126c4a70a6f) style: match function names - [`7aa2e00`](https://github.com/better-auth/better-auth/commit/7aa2e00cf1aab2c1ab742d94447aaaee8265e350) docs: import location of jwt - [`366c757`](https://github.com/better-auth/better-auth/commit/366c757173b9b78c0b0fb25aecb812be49c2bfad) docs: cubic suggestion ### 📊 Changes **1 file changed** (+20 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/oauth-provider.mdx` (+20 -3) </details> ### 📄 Description Minor improvements to the documentation, specifically the migration plan <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Improved the OAuth Provider migration guide with a ready-to-use hashing function, clearer token migration steps, and a corrected jwt import path. - **Migration** - Added a `defaultHasher` TypeScript snippet to convert plain client secrets to SHA-256 base64Url. - Updated token migration examples to use `defaultHasher` for access and refresh tokens. - Fixed the example to import `jwt` from `better-auth/plugins`. - Clarified that database changes match the “From OIDC Provider Plugin” section. <sup>Written for commit 366c757173b9b78c0b0fb25aecb812be49c2bfad. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <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 22:02:54 -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#23896