feat(clerk-js,shared): Add a navigateWithError utility for SignIn#2043
feat(clerk-js,shared): Add a navigateWithError utility for SignIn#2043yourtallness merged 1 commit intomainfrom
Conversation
🦋 Changeset detectedLatest commit: 2b5c1a6 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 |
| export const isResetPasswordStrategy = (strategy: SignInStrategy | string | null | undefined) => | ||
| !!strategy && resetPasswordStrategies.includes(strategy as SignInStrategy); | ||
|
|
||
| export function navigateWithError(clerk: Clerk, navigate: (to: string) => Promise<unknown>, to: string, err) { |
There was a problem hiding this comment.
I'd add this method as an internal method on Clerk Singleton. It feels like it's a better home with the current architecture.
a6b4569 to
ab672e7
Compare
58b8c53 to
8409a28
Compare
desiprisg
left a comment
There was a problem hiding this comment.
LGTM. Let's add a ticket to make a more uniform solution to these kind of problems, even if it gets backlogged for now.
8409a28 to
2b5c1a6
Compare
https://linear.app/clerk/issue/SDK-914/determine-a-holistic-solution-for-redirecting-with-an-error |
) (cherry picked from commit 0d1052a)
) (#2074) * feat(clerk-js,shared): Add a navigateWithError utility for SignIn (#2043) (cherry picked from commit 0d1052a) * fix(clekr-js): Correctly return the reject return value --------- Co-authored-by: Mark Pitsilos <mark.pitsilos@gmail.com> Co-authored-by: Nikos Douvlis <nikosdouvlis@gmail.com>
Description
WIP
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