-
Notifications
You must be signed in to change notification settings - Fork 253
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): Handle user_locked error during oauth flow with redir… #2019
Conversation
🦋 Changeset detectedLatest commit: 9dd106a The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 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 |
ac95ef6
to
69b011a
Compare
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.
🔒
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.
Shall we add a test for displaying the error in SignUpStart
?
@yourtallness is this something we need to backport to v4 ? |
This is pre-existing behaviour, but I'll take a look. |
@SokratisVidros @nikosdouvlis WDYT? |
…ect to /sign-up or /sign-in
69b011a
to
9dd106a
Compare
…ect to /sign-up or /sign-in
Description
When an oauth flow is started while a user is locked, we will get a
user_locked
error.The user will be identified, but after discussing with @desiprisg, we decided to redirect to
/sign-up
or/sign-in
so that theSignUp
orSignIn
are reset.We currently cannot offer the best UX from
/sign-in/factor-one
because the oauth identification does not display nicely in the<IdentityPreview />
component (the identifier is null).Thus for now we opted to restart the flow at step 1.
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