-
Notifications
You must be signed in to change notification settings - Fork 271
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): Support verification with enterprise SSO #4406
base: main
Are you sure you want to change the base?
Conversation
|
c701b85
to
299978a
Compare
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
299978a
to
e819163
Compare
edd622b
to
9471486
Compare
const emailAddressRef = React.useRef<EmailAddressResource | undefined>(user?.emailAddresses.find(a => a.id === id)); | ||
const strategy = getVerificationStrategy(emailAddressRef.current, preferEmailLinks); |
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.
TODO: We could map each component based on the strategy instead of performing multiple conditionals.
Also should take a look at not using the ref, but actually using the email within user settings.
*/ | ||
const { routing } = profileContext; | ||
const baseUrl = routing === 'virtual' ? displayConfig.userProfileUrl : ''; | ||
const redirectUrl = buildEmailLinkRedirectUrl(profileContext, baseUrl); |
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.
TODO: We should rename buildEmailLinkRedirectUrl
to buildVerificationRedirectUrl
Description
Resolves ORGS-395
Checklist
npm test
runs as expected.npm run build
runs as expected.Type of change