Uh oh!
There was an error while loading. Please reload this page.
feat(nextjs): Support auth().redirectToSignUp() - #5533
Conversation
🦋 Changeset detectedLatest commit: b31e524 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
Uh oh!
There was an error while loading. Please reload this page.
| const targetUrl = signUpUrl || accountsSignUpUrl; | ||
| // Allows redirection to SignInOrUp path | ||
| function buildSignUpUrl(signIn: string | URL | undefined) { |
There was a problem hiding this comment.
Just want to make sure that I understand this part here. If there's a sign in URL option (env var or middleware key), we assume that combined flow is enabled - but doesn't it also need be able via the withSignUp prop?
There was a problem hiding this comment.
yes, but in that case signUpUrl will be defined. withSignUp is per component, nothing in can do about it on the server.
Co-authored-by: Laura Beatris <48022589+LauraBeatris@users.noreply.github.com>
Description
Original PR.
This PR simply removes duplicated code and improves the changeset example.
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change