[PR #6281] feat: option to redirect after /sign-up/email finished #32166

Open
opened 2026-04-17 23:01:14 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6281
Author: @jslno
Created: 11/25/2025
Status: 🔄 Open

Base: mainHead: feat/sign-up-redirect-to


📝 Commits (3)

  • 7237aa3 feat(sign-up): option to redirect after sign-up finished
  • cd19e77 chore: fix typo
  • 14e097e chore: add basic test

📊 Changes

2 files changed (+36 additions, -1 deletions)

View changed files

📝 packages/better-auth/src/api/routes/sign-up.test.ts (+16 -0)
📝 packages/better-auth/src/api/routes/sign-up.ts (+20 -1)

📄 Description

Summary by cubic

Adds an optional redirectTo parameter to the sign-up API to enable redirect after a successful sign-up. The response now returns redirect and url to guide client-side navigation; no redirect when email verification is required.

  • New Features
    • Request: accepts redirectTo in the body.
    • Response: adds redirect (boolean) and url (nullable).
    • Behavior: if email verification is required, returns redirect: false and token: null; otherwise sets redirect/url based on redirectTo.

Written for commit 14e097e53d. 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/6281 **Author:** [@jslno](https://github.com/jslno) **Created:** 11/25/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat/sign-up-redirect-to` --- ### 📝 Commits (3) - [`7237aa3`](https://github.com/better-auth/better-auth/commit/7237aa31c82c6463978cb560b8453a9618bd2e48) feat(sign-up): option to redirect after sign-up finished - [`cd19e77`](https://github.com/better-auth/better-auth/commit/cd19e77678e6c9a0341936d267997b343a9f6055) chore: fix typo - [`14e097e`](https://github.com/better-auth/better-auth/commit/14e097e53df3b3cddcc78736798e9ed5f1875e56) chore: add basic test ### 📊 Changes **2 files changed** (+36 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/api/routes/sign-up.test.ts` (+16 -0) 📝 `packages/better-auth/src/api/routes/sign-up.ts` (+20 -1) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Adds an optional redirectTo parameter to the sign-up API to enable redirect after a successful sign-up. The response now returns redirect and url to guide client-side navigation; no redirect when email verification is required. - **New Features** - Request: accepts redirectTo in the body. - Response: adds redirect (boolean) and url (nullable). - Behavior: if email verification is required, returns redirect: false and token: null; otherwise sets redirect/url based on redirectTo. <sup>Written for commit 14e097e53df3b3cddcc78736798e9ed5f1875e56. 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-17 23:01:14 -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#32166