-
Notifications
You must be signed in to change notification settings - Fork 327
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(clerk-js,types): Drop redirectToHome in favour of redirectToAfterSignIn & redirectToAfterSignUp [SDK-875] #2251
Conversation
🦋 Changeset detectedLatest commit: 03586f5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 11 packages
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 |
|
7bffb59
to
99a1541
Compare
3acd80f
to
095cae7
Compare
this.premountMethodCalls.set('buildHomeUrl', callback); | ||
} | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔧 We should also introduce the buildAfterSignInUrl
and buildAfterSignUpUrl
here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
@@ -1,5 +1,6 @@ | |||
import type { UserResource } from '@clerk/types'; | |||
import { describe, it } from '@jest/globals'; | |||
import React from 'react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ Do we need this?
…rSignIn & redirectToAfterSignUp
…& buildRedirectToAfterSignInUrl
…rganizationProfile
e519845
to
295b414
Compare
Description
This PR introduces two breaking changes:
redirectToHome
method has been replaced withredirectToAfterSignIn
andredirectToAfterSignUp
redirect methods.<SignIn/>
and<SignUp/>
components are rendered while a user is already logged in, they will now redirect to the configuredafterSignIn
andafterSignUp
URLs respectively. Previously, the redirect URL was the home URL that was configured in the dashboard.SDK-875
Checklist
npm test
runs as expected.npm run build
runs as expected.Type of change
Packages affected
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/clerk-expo
@clerk/fastify
gatsby-plugin-clerk
@clerk/localizations
@clerk/nextjs
@clerk/clerk-react
@clerk/remix
@clerk/clerk-sdk-node
@clerk/shared
@clerk/themes
@clerk/types
build/tooling/chore