-
Notifications
You must be signed in to change notification settings - Fork 298
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(ui): Render email or phone number during verification step #3694
feat(ui): Render email or phone number during verification step #3694
Conversation
🦋 Changeset detectedLatest commit: ca02d78 The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types 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 |
…or-accessing-email-address-and-phone-2
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.
💯
export function SignUpIdentifier({ emailAddress, phoneNumber }: Identifier) { | ||
const { client } = useClerk(); | ||
const signUpEmailAddress = client.signUp.emailAddress; | ||
const { formattedNumberWithCode: signUpPhoneNumber } = parsePhoneString(client.signUp.phoneNumber || ''); |
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.
❔ Minor thing feel free to ignore, should we consider moving the parsing here inside the if statement below to avoid calling parsePhoneString
when there is no phone number?
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.
Good idea ca02d78
Description
<SignUpIdentifier />
component to render either the formatted phone number or email address.email_code
verification stepphone_code
verification stephttps://linear.app/clerk/issue/SDK-1830/add-signup-elements-for-accessing-email-address-and-phone-number
Checklist
npm test
runs as expected.npm run build
runs as expected.Type of change