-
Notifications
You must be signed in to change notification settings - Fork 346
Replace AuthConfig with UserSettings in # #40
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Replace AuthConfig with UserSettings in # #40
Conversation
6a60d15
to
9e009de
Compare
7627641
to
65d98e0
Compare
|
||
// TODO: # should have a field similar to SignIn's supportedFirstFactors | ||
// listing the available strategies for this # | ||
const emailLinkStrategyEnabled = firstFactors.includes(emailLinkStrategy); | ||
const emailLinkStrategyEnabled = | ||
attributes.email_address.first_factors.includes('email_link'); |
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.
❓ Does it make sense to also check if attributes.email_address.used_for_first_factor
is true
attributes.email_address.first_factors.includes('email_link'); | |
attributes.email_address.used_for_first_factor && attributes.email_address.first_factors.includes('email_link'); |
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.
It should be enough since we only care about the email_link
strategy, but @gkats might be able to confirm this
const key = snakeToCamel(name) as keyof Fields; | ||
acc[key] = desc.required ? 'required' : 'on'; | ||
return acc; | ||
}, {} as Fields); |
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.
I guess this will be part of the refactoring that we will do later on, right?
Type of change
Packages affected
@clerk/clerk-js
@clerk/clerk-react
@clerk/nextjs
@clerk/types
@clerk/clerk-expo
@clerk/backend-core
@clerk/clerk-sdk-node
@clerk/edge
build/tooling/chore
Description
npm test
runs as expected.npm run build
runs as expected.Replace authConfig with userSettings in #