[PR #1890] [MERGED] fix(docs): update parameter destructuring in JWT payload example #4049

Closed
opened 2026-03-13 11:30:21 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1890
Author: @zeljic
Created: 3/19/2025
Status: Merged
Merged: 4/11/2025
Merged by: @Bekacru

Base: mainHead: fix/docs/user-destructuring


📝 Commits (1)

  • 1cf31e3 fix(docs): update parameter destructuring in JWT payload example

📊 Changes

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

View changed files

📝 docs/content/docs/plugins/jwt.mdx (+1 -1)

📄 Description

This pull request includes a small change to the docs/content/docs/plugins/jwt.mdx file.

The change modifies the definePayload function to destructure the user object directly in the function parameter.


🔄 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/1890 **Author:** [@zeljic](https://github.com/zeljic) **Created:** 3/19/2025 **Status:** ✅ Merged **Merged:** 4/11/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix/docs/user-destructuring` --- ### 📝 Commits (1) - [`1cf31e3`](https://github.com/better-auth/better-auth/commit/1cf31e3f77f2385d31fe9ab84ba3040829d643f3) fix(docs): update parameter destructuring in JWT payload example ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/jwt.mdx` (+1 -1) </details> ### 📄 Description This pull request includes a small change to the `docs/content/docs/plugins/jwt.mdx` file. The change modifies the `definePayload` function to destructure the `user` object directly in the function parameter. --- <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-03-13 11:30:21 -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#4049