Uh oh!
There was an error while loading. Please reload this page.
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
99a1541Compare3acd80f to
095cae7CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| this.premountMethodCalls.set('buildHomeUrl', callback); | ||
| } | ||
| }; | ||
There was a problem hiding this comment.
🔧 We should also introduce the buildAfterSignInUrl and buildAfterSignUpUrl here.
| @@ -1,5 +1,6 @@ | |||
| import type { UserResource } from '@clerk/types'; | |||
| import { describe, it } from '@jest/globals'; | |||
| import React from 'react'; | |||
…rSignIn & redirectToAfterSignUp
…& buildRedirectToAfterSignInUrl
e519845 to
295b414Compare
Description
This PR introduces two breaking changes:
redirectToHomemethod has been replaced withredirectToAfterSignInandredirectToAfterSignUpredirect methods.<SignIn/>and<SignUp/>components are rendered while a user is already logged in, they will now redirect to the configuredafterSignInandafterSignUpURLs respectively. Previously, the redirect URL was the home URL that was configured in the dashboard.SDK-875
Checklist
npm testruns as expected.npm run buildruns as expected.Type of change
Packages affected
@clerk/backend@clerk/chrome-extension@clerk/clerk-js@clerk/clerk-expo@clerk/fastifygatsby-plugin-clerk@clerk/localizations@clerk/nextjs@clerk/clerk-react@clerk/remix@clerk/clerk-sdk-node@clerk/shared@clerk/themes@clerk/typesbuild/tooling/chore