Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add redirectToSignUp() to ClerkMiddlewareAuthObject #5407

Closed

Conversation

sambarnes
Copy link

@sambarnes sambarnes commented Mar 20, 2025

Description

howdy! sent yall a msg in slack too ✌️ we're working on some signup flow click golfing and wanted to have certain routes send users to the signup page instead of sign in, through our nextjs middleware

looks like this middleware interface originated in #2611, so im gonna read thru that more closely to make sure my stuff makes sense

couldnt find any references to the redirectToSignIn() middleware interface in the docs, so not sure theres any content to update there yet

lmk if you're open to helping me land this! or perhaps an alternate path forward? thx:)

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🌟 New feature

Copy link

changeset-bot bot commented Mar 20, 2025

🦋 Changeset detected

Latest commit: 599369c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@clerk/nextjs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Mar 20, 2025

@sambarnes is attempting to deploy a commit to the Clerk Production Team on Vercel.

A member of the Team first needs to authorize it.

@sambarnes sambarnes force-pushed the sam/middleware-redirectToSignUp branch from fefe438 to b204aa9 Compare March 20, 2025 23:26
@sambarnes sambarnes marked this pull request as ready for review March 21, 2025 00:08
@panteliselef
Copy link
Member

Thanks for the contribution @sambarnes. It was way easier and faster to open my own PR (we have some issues with e2es from contributors).

Closing in favour of #5533

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants