[PR #7747] feat(anonymous): add body params to signInAnonymous #7532

Open
opened 2026-03-13 13:40:38 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7747
Author: @chroxify
Created: 2/1/2026
Status: 🔄 Open

Base: canaryHead: feat/anonymous-body-params


📝 Commits (2)

  • 6b67cc9 feat(anonymous): add body params to signInAnonymous
  • df144cc feat(docs): update docs with new params

📊 Changes

3 files changed (+122 additions, -3 deletions)

View changed files

📝 docs/content/docs/plugins/anonymous.mdx (+17 -0)
📝 packages/better-auth/src/plugins/anonymous/anon.test.ts (+69 -0)
📝 packages/better-auth/src/plugins/anonymous/index.ts (+36 -3)

📄 Description

Includes following changes for the anonymous plugin:

  • Adds optional name and image body parameters to the signInAnonymous endpoint
  • Allows passing additional user fields through the request body (uses parseUserInput for schema validation)
  • Body name takes priority over generateName option, falling back to "Anonymous" if neither is provided
  • Updates related docs

Summary by cubic

Adds support for passing name, image, and extra validated user fields in the signIn.anonymous request body to set anonymous profile data. The body name overrides generateName, with a fallback to "Anonymous"; docs and tests updated.

Written for commit df144cc946. Summary will update 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/7747 **Author:** [@chroxify](https://github.com/chroxify) **Created:** 2/1/2026 **Status:** 🔄 Open **Base:** `canary` ← **Head:** `feat/anonymous-body-params` --- ### 📝 Commits (2) - [`6b67cc9`](https://github.com/better-auth/better-auth/commit/6b67cc9e8adb5c72a966fb75745614d5c8872a50) feat(anonymous): add body params to signInAnonymous - [`df144cc`](https://github.com/better-auth/better-auth/commit/df144cc94673fec2f9642362f0e20484b20734e0) feat(docs): update docs with new params ### 📊 Changes **3 files changed** (+122 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/anonymous.mdx` (+17 -0) 📝 `packages/better-auth/src/plugins/anonymous/anon.test.ts` (+69 -0) 📝 `packages/better-auth/src/plugins/anonymous/index.ts` (+36 -3) </details> ### 📄 Description Includes following changes for the anonymous plugin: - Adds optional name and image body parameters to the `signInAnonymous` endpoint - Allows passing additional user fields through the request body (uses `parseUserInput` for schema validation) - Body name takes priority over `generateName` option, falling back to "Anonymous" if neither is provided - Updates related docs <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds support for passing name, image, and extra validated user fields in the signIn.anonymous request body to set anonymous profile data. The body name overrides generateName, with a fallback to "Anonymous"; docs and tests updated. <sup>Written for commit df144cc94673fec2f9642362f0e20484b20734e0. Summary will update 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-03-13 13:40:38 -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#7532