diff --git a/.changeset/friendly-chairs-tie.md b/.changeset/friendly-chairs-tie.md index 8fd318da6bb..6ea9ee38527 100644 --- a/.changeset/friendly-chairs-tie.md +++ b/.changeset/friendly-chairs-tie.md @@ -5,10 +5,10 @@ Drop experimental tag related to reverification. Properties of Clerk class: -- `__experimental_openUserVerification` -> `__internal_openUserVerification` -- `__experimental_closeUserVerification` -> `__internal_closeUserVerification` -- `__experimental_UserVerificationProps` -> `__internal_UserVerificationProps` -- `__experimental_UserVerificationModalProps` -> `__internal_UserVerificationModalProps` +- `__experimental_openUserVerification` -> `__internal_openReverification` +- `__experimental_closeUserVerification` -> `__internal_closeReverification` +- `__experimental_UserVerificationProps` -> `__internal_ReverificationProps` +- `__experimental_UserVerificationModalProps` -> `__internal_ReverificationModalProps` Properties of `Session`: - `__experimental_factorVerificationAge` -> `factorVerificationAge` @@ -30,4 +30,4 @@ Properties of `IntialState`: - `__experimental_factorVerificationAge` -> `factorVerificationAge` Localization types: -All properties of `__experimental_userVerification` are moved to `userVerification` +All properties of `__experimental_userVerification` are moved to `reverification` diff --git a/.changeset/hungry-beds-prove.md b/.changeset/hungry-beds-prove.md index 1fdf4ad7c68..d1fc409c1fa 100644 --- a/.changeset/hungry-beds-prove.md +++ b/.changeset/hungry-beds-prove.md @@ -5,10 +5,10 @@ Drop experimental tag related to reverification. Properties of Clerk class: -- `__experimental_openUserVerification` -> `__internal_openUserVerification` -- `__experimental_closeUserVerification` -> `__internal_closeUserVerification` -- `__experimental_UserVerificationProps` -> `__internal_UserVerificationProps` -- `__experimental_UserVerificationModalProps` -> `__internal_UserVerificationModalProps` +- `__experimental_openUserVerification` -> `__internal_openReverification` +- `__experimental_closeUserVerification` -> `__internal_closeReverification` +- `__experimental_UserVerificationProps` -> `__internal_ReverificationProps` +- `__experimental_UserVerificationModalProps` -> `__internal_ReverificationModalProps` Properties of `Session`: - `__experimental_factorVerificationAge` -> `factorVerificationAge` diff --git a/.changeset/small-suits-knock.md b/.changeset/small-suits-knock.md index 53c5597333a..82253950255 100644 --- a/.changeset/small-suits-knock.md +++ b/.changeset/small-suits-knock.md @@ -2,4 +2,4 @@ '@clerk/localizations': minor --- -Moves all properties under `__experimental_userVerification` to `userVerification`. This affects all languages. +Moves all properties under `__experimental_userVerification` to `reverification`. This affects all languages. diff --git a/.changeset/strange-days-kneel.md b/.changeset/strange-days-kneel.md new file mode 100644 index 00000000000..884b6dccd45 --- /dev/null +++ b/.changeset/strange-days-kneel.md @@ -0,0 +1,9 @@ +--- +'@clerk/localizations': patch +'@clerk/clerk-js': patch +'@clerk/shared': patch +'@clerk/clerk-react': patch +'@clerk/types': patch +--- + +Rename userVerification to reverification to align with the feature name. diff --git a/packages/clerk-js/src/core/clerk.ts b/packages/clerk-js/src/core/clerk.ts index 99b578e14f8..8d087aa7e52 100644 --- a/packages/clerk-js/src/core/clerk.ts +++ b/packages/clerk-js/src/core/clerk.ts @@ -425,7 +425,7 @@ export class Clerk implements ClerkInterface { void this.#componentControls.ensureMounted().then(controls => controls.closeModal('signIn')); }; - public __internal_openUserVerification = (props?: __internal_UserVerificationModalProps): void => { + public __internal_openReverification = (props?: __internal_UserVerificationModalProps): void => { this.assertComponentsReady(this.#componentControls); if (noUserExists(this)) { if (this.#instanceType === 'development') { @@ -440,7 +440,7 @@ export class Clerk implements ClerkInterface { .then(controls => controls.openModal('userVerification', props || {})); }; - public __internal_closeUserVerification = (): void => { + public __internal_closeReverification = (): void => { this.assertComponentsReady(this.#componentControls); void this.#componentControls.ensureMounted().then(controls => controls.closeModal('userVerification')); }; diff --git a/packages/clerk-js/src/ui/components/UserVerification/AlternativeMethods.tsx b/packages/clerk-js/src/ui/components/UserVerification/AlternativeMethods.tsx index 28e0fabfd8c..03a41a3d044 100644 --- a/packages/clerk-js/src/ui/components/UserVerification/AlternativeMethods.tsx +++ b/packages/clerk-js/src/ui/components/UserVerification/AlternativeMethods.tsx @@ -39,8 +39,8 @@ const AlternativeMethodsList = (props: AlternativeMethodListProps) => { - - + + {card.error} {/*TODO: extract main in its own component */} @@ -87,9 +87,9 @@ const AlternativeMethodsList = (props: AlternativeMethodListProps) => { - + @@ -102,15 +102,15 @@ const AlternativeMethodsList = (props: AlternativeMethodListProps) => { export function getButtonLabel(factor: SessionVerificationFirstFactor): LocalizationKey { switch (factor.strategy) { case 'email_code': - return localizationKeys('userVerification.alternativeMethods.blockButton__emailCode', { + return localizationKeys('reverification.alternativeMethods.blockButton__emailCode', { identifier: formatSafeIdentifier(factor.safeIdentifier) || '', }); case 'phone_code': - return localizationKeys('userVerification.alternativeMethods.blockButton__phoneCode', { + return localizationKeys('reverification.alternativeMethods.blockButton__phoneCode', { identifier: formatSafeIdentifier(factor.safeIdentifier) || '', }); case 'password': - return localizationKeys('userVerification.alternativeMethods.blockButton__password'); + return localizationKeys('reverification.alternativeMethods.blockButton__password'); default: throw `Invalid sign in strategy: "${(factor as any).strategy}"`; } diff --git a/packages/clerk-js/src/ui/components/UserVerification/HavingTrouble.tsx b/packages/clerk-js/src/ui/components/UserVerification/HavingTrouble.tsx index a6c020deba4..a4cd742f0bb 100644 --- a/packages/clerk-js/src/ui/components/UserVerification/HavingTrouble.tsx +++ b/packages/clerk-js/src/ui/components/UserVerification/HavingTrouble.tsx @@ -7,8 +7,8 @@ export const HavingTrouble = (props: PropsOfComponent) => { return ( ); diff --git a/packages/clerk-js/src/ui/components/UserVerification/UVFactorOneEmailCodeCard.tsx b/packages/clerk-js/src/ui/components/UserVerification/UVFactorOneEmailCodeCard.tsx index c1f02b13ca6..fb6fc6f7d8d 100644 --- a/packages/clerk-js/src/ui/components/UserVerification/UVFactorOneEmailCodeCard.tsx +++ b/packages/clerk-js/src/ui/components/UserVerification/UVFactorOneEmailCodeCard.tsx @@ -11,10 +11,10 @@ export const UVFactorOneEmailCodeCard = (props: UVFactorOneEmailCodeCardProps) = ); diff --git a/packages/clerk-js/src/ui/components/UserVerification/UVFactorOnePhoneCodeCard.tsx b/packages/clerk-js/src/ui/components/UserVerification/UVFactorOnePhoneCodeCard.tsx index e18ae2b7540..a2210f7dd37 100644 --- a/packages/clerk-js/src/ui/components/UserVerification/UVFactorOnePhoneCodeCard.tsx +++ b/packages/clerk-js/src/ui/components/UserVerification/UVFactorOnePhoneCodeCard.tsx @@ -11,10 +11,10 @@ export const UVFactorOnePhoneCodeCard = (props: UVFactorOnePhoneCodeCardProps) = ); diff --git a/packages/clerk-js/src/ui/components/UserVerification/UVFactorTwoAlternativeMethods.tsx b/packages/clerk-js/src/ui/components/UserVerification/UVFactorTwoAlternativeMethods.tsx index 9c4971ccded..cae82bd1405 100644 --- a/packages/clerk-js/src/ui/components/UserVerification/UVFactorTwoAlternativeMethods.tsx +++ b/packages/clerk-js/src/ui/components/UserVerification/UVFactorTwoAlternativeMethods.tsx @@ -41,8 +41,8 @@ const AlternativeMethodsList = (props: AlternativeMethodsProps & { onHavingTroub - - + + {card.error} {/*TODO: extract main in its own component */} @@ -76,9 +76,9 @@ const AlternativeMethodsList = (props: AlternativeMethodsProps & { onHavingTroub - + @@ -91,13 +91,13 @@ const AlternativeMethodsList = (props: AlternativeMethodsProps & { onHavingTroub export function getButtonLabel(factor: SessionVerificationSecondFactor): LocalizationKey { switch (factor.strategy) { case 'phone_code': - return localizationKeys('userVerification.alternativeMethods.blockButton__phoneCode', { + return localizationKeys('reverification.alternativeMethods.blockButton__phoneCode', { identifier: formatSafeIdentifier(factor.safeIdentifier) || '', }); case 'totp': - return localizationKeys('userVerification.alternativeMethods.blockButton__totp'); + return localizationKeys('reverification.alternativeMethods.blockButton__totp'); case 'backup_code': - return localizationKeys('userVerification.alternativeMethods.blockButton__backupCode'); + return localizationKeys('reverification.alternativeMethods.blockButton__backupCode'); default: throw `Invalid verification strategy: "${(factor as any).strategy}"`; } diff --git a/packages/clerk-js/src/ui/components/UserVerification/UVFactorTwoBackupCodeCard.tsx b/packages/clerk-js/src/ui/components/UserVerification/UVFactorTwoBackupCodeCard.tsx index bfc99a2e776..8d44a0adadd 100644 --- a/packages/clerk-js/src/ui/components/UserVerification/UVFactorTwoBackupCodeCard.tsx +++ b/packages/clerk-js/src/ui/components/UserVerification/UVFactorTwoBackupCodeCard.tsx @@ -34,8 +34,8 @@ export const UVFactorTwoBackupCodeCard = (props: UVFactorTwoBackupCodeCardProps) - - + + {card.error} diff --git a/packages/clerk-js/src/ui/components/UserVerification/UserVerificationFactorOne.tsx b/packages/clerk-js/src/ui/components/UserVerification/UserVerificationFactorOne.tsx index 908e5f08ccf..5a1aceabd0d 100644 --- a/packages/clerk-js/src/ui/components/UserVerification/UserVerificationFactorOne.tsx +++ b/packages/clerk-js/src/ui/components/UserVerification/UserVerificationFactorOne.tsx @@ -77,9 +77,9 @@ export function _UserVerificationFactorOne(): JSX.Element | null { if (!currentFactor) { return ( ); diff --git a/packages/clerk-js/src/ui/components/UserVerification/UserVerificationFactorOnePassword.tsx b/packages/clerk-js/src/ui/components/UserVerification/UserVerificationFactorOnePassword.tsx index 667e5fce97b..1f7b870a94a 100644 --- a/packages/clerk-js/src/ui/components/UserVerification/UserVerificationFactorOnePassword.tsx +++ b/packages/clerk-js/src/ui/components/UserVerification/UserVerificationFactorOnePassword.tsx @@ -47,8 +47,8 @@ export function UserVerificationFactorOnePasswordCard(props: UserVerificationFac - - + + {card.error} diff --git a/packages/clerk-js/src/ui/components/UserVerification/UserVerificationFactorTwoTOTP.tsx b/packages/clerk-js/src/ui/components/UserVerification/UserVerificationFactorTwoTOTP.tsx index 0cf2ca1065b..238bb50fd1e 100644 --- a/packages/clerk-js/src/ui/components/UserVerification/UserVerificationFactorTwoTOTP.tsx +++ b/packages/clerk-js/src/ui/components/UserVerification/UserVerificationFactorTwoTOTP.tsx @@ -11,9 +11,9 @@ export function UserVerificationFactorTwoTOTP(props: UVFactorTwoTOTPCardProps): ); diff --git a/packages/clerk-js/src/ui/components/UserVerification/__tests__/UVFactorOne.test.tsx b/packages/clerk-js/src/ui/components/UserVerification/__tests__/UVFactorOne.test.tsx index 389f008a17e..cd0d21559de 100644 --- a/packages/clerk-js/src/ui/components/UserVerification/__tests__/UVFactorOne.test.tsx +++ b/packages/clerk-js/src/ui/components/UserVerification/__tests__/UVFactorOne.test.tsx @@ -27,8 +27,8 @@ describe('UserVerificationFactorOne', () => { const { getByLabelText, getByText } = render(, { wrapper }); await waitFor(() => { - getByText('Enter your password'); - getByText('Enter the password associated with your account'); + getByText('Verification required'); + getByText('Enter your password to continue'); getByLabelText(/^password/i); }); }); @@ -46,7 +46,7 @@ describe('UserVerificationFactorOne', () => { const { getByLabelText, getByText } = render(, { wrapper }); await waitFor(() => { - getByText('Check your email'); + getByText('Verification required'); getByLabelText(/Enter verification code/i); }); @@ -66,7 +66,7 @@ describe('UserVerificationFactorOne', () => { const { getByLabelText, getByText } = render(, { wrapper }); await waitFor(() => { - getByText('Check your phone'); + getByText('Verification required'); getByLabelText(/Enter verification code/i); }); @@ -93,7 +93,7 @@ describe('UserVerificationFactorOne', () => { const { userEvent, getByLabelText, getByText } = render(, { wrapper }); - await waitFor(() => getByText('Enter your password')); + await waitFor(() => getByText('Verification required')); await userEvent.type(getByLabelText(/^password/i), 'testtest'); await userEvent.click(getByText('Continue')); @@ -123,7 +123,7 @@ describe('UserVerificationFactorOne', () => { const { userEvent, getByLabelText, getByText } = render(, { wrapper }); - await waitFor(() => getByText('Enter your password')); + await waitFor(() => getByText('Verification required')); await userEvent.type(getByLabelText(/^password/i), 'testtest'); await userEvent.click(screen.getByText('Continue')); diff --git a/packages/clerk-js/src/ui/components/UserVerification/__tests__/UVFactorTwo.test.tsx b/packages/clerk-js/src/ui/components/UserVerification/__tests__/UVFactorTwo.test.tsx index 4e6d7ece1eb..4ced1804580 100644 --- a/packages/clerk-js/src/ui/components/UserVerification/__tests__/UVFactorTwo.test.tsx +++ b/packages/clerk-js/src/ui/components/UserVerification/__tests__/UVFactorTwo.test.tsx @@ -33,7 +33,7 @@ describe('UserVerificationFactorTwo', () => { const { getByText, getAllByLabelText } = render(, { wrapper }); await waitFor(() => { - getByText('Check your phone'); + getByText('Verification required'); const inputs = getAllByLabelText(/digit/i); expect(inputs.length).toBe(6); }); @@ -55,8 +55,8 @@ describe('UserVerificationFactorTwo', () => { const { getByLabelText, getByText } = render(, { wrapper }); await waitFor(() => { - getByText('Two-step verification'); - getByText('To continue, please enter the verification code generated by your authenticator app'); + getByText('Verification required'); + getByText('Enter the code generated by your authenticator app to continue'); getByLabelText(/Enter verification code/i); }); }); @@ -78,7 +78,7 @@ describe('UserVerificationFactorTwo', () => { await waitFor(() => { getByText('Enter a backup code'); - getByText('Your backup code is the one you got when setting up two-step authentication.'); + getByText('Enter the backup code you received when setting up two-step authentication'); getByLabelText(/Backup code/i); }); }); @@ -123,7 +123,7 @@ describe('UserVerificationFactorTwo', () => { await runFakeTimers(async timers => { const { userEvent, getByLabelText, getByText } = render(, { wrapper }); - await waitFor(() => getByText('Check your phone')); + await waitFor(() => getByText('Verification required')); await userEvent.type(getByLabelText(/Enter verification code/i), '123456'); timers.runOnlyPendingTimers(); diff --git a/packages/localizations/src/ar-SA.ts b/packages/localizations/src/ar-SA.ts index 9d9d1dadd2e..65413ab0caf 100644 --- a/packages/localizations/src/ar-SA.ts +++ b/packages/localizations/src/ar-SA.ts @@ -846,7 +846,7 @@ export const arSA: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: undefined, actionText: undefined, diff --git a/packages/localizations/src/be-BY.ts b/packages/localizations/src/be-BY.ts index 71a4c2cd871..341724641e9 100644 --- a/packages/localizations/src/be-BY.ts +++ b/packages/localizations/src/be-BY.ts @@ -859,7 +859,7 @@ export const beBY: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: undefined, actionText: undefined, diff --git a/packages/localizations/src/bg-BG.ts b/packages/localizations/src/bg-BG.ts index 11a58948cac..8d0f455da92 100644 --- a/packages/localizations/src/bg-BG.ts +++ b/packages/localizations/src/bg-BG.ts @@ -853,7 +853,7 @@ export const bgBG: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: undefined, actionText: undefined, diff --git a/packages/localizations/src/cs-CZ.ts b/packages/localizations/src/cs-CZ.ts index 6e88a20bc68..a21bbc090bc 100644 --- a/packages/localizations/src/cs-CZ.ts +++ b/packages/localizations/src/cs-CZ.ts @@ -849,7 +849,7 @@ export const csCZ: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: undefined, actionText: undefined, diff --git a/packages/localizations/src/da-DK.ts b/packages/localizations/src/da-DK.ts index c20c6ae784c..eb4320181d8 100644 --- a/packages/localizations/src/da-DK.ts +++ b/packages/localizations/src/da-DK.ts @@ -851,7 +851,7 @@ export const daDK: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: undefined, actionText: undefined, diff --git a/packages/localizations/src/de-DE.ts b/packages/localizations/src/de-DE.ts index 25e8c9eba8b..901f777349e 100644 --- a/packages/localizations/src/de-DE.ts +++ b/packages/localizations/src/de-DE.ts @@ -866,7 +866,7 @@ export const deDE: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: undefined, actionText: undefined, diff --git a/packages/localizations/src/el-GR.ts b/packages/localizations/src/el-GR.ts index 9e728645372..7834baabe9f 100644 --- a/packages/localizations/src/el-GR.ts +++ b/packages/localizations/src/el-GR.ts @@ -861,7 +861,7 @@ export const elGR: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: undefined, actionText: undefined, diff --git a/packages/localizations/src/en-US.ts b/packages/localizations/src/en-US.ts index c5e383b269c..2a9ba51ee1c 100644 --- a/packages/localizations/src/en-US.ts +++ b/packages/localizations/src/en-US.ts @@ -846,7 +846,7 @@ export const enUS: LocalizationResource = { web3WalletButtonsBlockButton: '{{provider|titleize}}', }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: 'Get help', actionText: 'Don’t have any of these?', @@ -865,41 +865,41 @@ export const enUS: LocalizationResource = { title: 'Use another method', }, backupCodeMfa: { - subtitle: 'Your backup code is the one you got when setting up two-step authentication.', + subtitle: 'Enter the backup code you received when setting up two-step authentication', title: 'Enter a backup code', }, emailCode: { formTitle: 'Verification code', resendButton: "Didn't receive a code? Resend", - subtitle: 'to continue to {{applicationName}}', - title: 'Check your email', + subtitle: 'Enter the code sent to your email to continue', + title: 'Verification required', }, noAvailableMethods: { - message: "Cannot proceed with verification. There's no available authentication factor.", + message: 'Cannot proceed with verification. No suitable authentication factor is configured', subtitle: 'An error occurred', title: 'Cannot verify your account', }, password: { actionLink: 'Use another method', - subtitle: 'Enter the password associated with your account', - title: 'Enter your password', + subtitle: 'Enter your password to continue', + title: 'Verification required', }, phoneCode: { formTitle: 'Verification code', resendButton: "Didn't receive a code? Resend", - subtitle: 'to continue to {{applicationName}}', - title: 'Check your phone', + subtitle: 'Enter the code sent to your phone to continue', + title: 'Verification required', }, phoneCodeMfa: { formTitle: 'Verification code', resendButton: "Didn't receive a code? Resend", - subtitle: 'To continue, please enter the verification code sent to your phone', - title: 'Check your phone', + subtitle: 'Enter the code sent to your phone to continue', + title: 'Verification required', }, totpMfa: { formTitle: 'Verification code', - subtitle: 'To continue, please enter the verification code generated by your authenticator app', - title: 'Two-step verification', + subtitle: 'Enter the code generated by your authenticator app to continue', + title: 'Verification required', }, }, waitlist: { diff --git a/packages/localizations/src/es-ES.ts b/packages/localizations/src/es-ES.ts index ae186a8c003..9ab31051a2c 100644 --- a/packages/localizations/src/es-ES.ts +++ b/packages/localizations/src/es-ES.ts @@ -857,7 +857,7 @@ export const esES: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: undefined, actionText: undefined, diff --git a/packages/localizations/src/es-MX.ts b/packages/localizations/src/es-MX.ts index ed57cd161ee..f9d09b9a50b 100644 --- a/packages/localizations/src/es-MX.ts +++ b/packages/localizations/src/es-MX.ts @@ -859,7 +859,7 @@ export const esMX: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: undefined, actionText: undefined, diff --git a/packages/localizations/src/fi-FI.ts b/packages/localizations/src/fi-FI.ts index e107f1ffe28..19a5bb15f55 100644 --- a/packages/localizations/src/fi-FI.ts +++ b/packages/localizations/src/fi-FI.ts @@ -855,7 +855,7 @@ export const fiFI: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: undefined, actionText: undefined, diff --git a/packages/localizations/src/fr-FR.ts b/packages/localizations/src/fr-FR.ts index 97524a2fe56..19184fe03a4 100644 --- a/packages/localizations/src/fr-FR.ts +++ b/packages/localizations/src/fr-FR.ts @@ -859,7 +859,7 @@ export const frFR: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: undefined, actionText: undefined, diff --git a/packages/localizations/src/he-IL.ts b/packages/localizations/src/he-IL.ts index fd614dba138..50c7cd6c513 100644 --- a/packages/localizations/src/he-IL.ts +++ b/packages/localizations/src/he-IL.ts @@ -833,7 +833,7 @@ export const heIL: LocalizationResource = { web3WalletButtonsBlockButton: '{{provider|titleize}}', }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: 'השג עזרה', actionText: 'אין לך אף אחד מאלה?', diff --git a/packages/localizations/src/hr-HR.ts b/packages/localizations/src/hr-HR.ts index b2f1bfbfa5d..5b063901931 100644 --- a/packages/localizations/src/hr-HR.ts +++ b/packages/localizations/src/hr-HR.ts @@ -2,7 +2,7 @@ import type { LocalizationResource } from '@clerk/types'; export const hrHR: LocalizationResource = { locale: 'hr-HR', - userVerification: { + reverification: { alternativeMethods: { actionLink: 'Zatražite pomoć', actionText: 'Nemate ništa od ovoga?', diff --git a/packages/localizations/src/hu-HU.ts b/packages/localizations/src/hu-HU.ts index 62bfff86ac5..357f84fdacc 100644 --- a/packages/localizations/src/hu-HU.ts +++ b/packages/localizations/src/hu-HU.ts @@ -856,7 +856,7 @@ export const huHU: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: undefined, actionText: undefined, diff --git a/packages/localizations/src/is-IS.ts b/packages/localizations/src/is-IS.ts index a13b8e4937b..d0bcfe071ab 100644 --- a/packages/localizations/src/is-IS.ts +++ b/packages/localizations/src/is-IS.ts @@ -859,7 +859,7 @@ export const isIS: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: undefined, actionText: undefined, diff --git a/packages/localizations/src/it-IT.ts b/packages/localizations/src/it-IT.ts index 04c893098d6..d4b0a51dd70 100644 --- a/packages/localizations/src/it-IT.ts +++ b/packages/localizations/src/it-IT.ts @@ -855,7 +855,7 @@ export const itIT: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: undefined, actionText: undefined, diff --git a/packages/localizations/src/ja-JP.ts b/packages/localizations/src/ja-JP.ts index e21428045e3..5be85cea0eb 100644 --- a/packages/localizations/src/ja-JP.ts +++ b/packages/localizations/src/ja-JP.ts @@ -848,7 +848,7 @@ export const jaJP: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: undefined, actionText: undefined, diff --git a/packages/localizations/src/ko-KR.ts b/packages/localizations/src/ko-KR.ts index 82843004714..9f9c2ad099a 100644 --- a/packages/localizations/src/ko-KR.ts +++ b/packages/localizations/src/ko-KR.ts @@ -839,7 +839,7 @@ export const koKR: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: undefined, actionText: undefined, diff --git a/packages/localizations/src/mn-MN.ts b/packages/localizations/src/mn-MN.ts index e3c686dfedd..d0f8114423d 100644 --- a/packages/localizations/src/mn-MN.ts +++ b/packages/localizations/src/mn-MN.ts @@ -854,7 +854,7 @@ export const mnMN: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: undefined, actionText: undefined, diff --git a/packages/localizations/src/nb-NO.ts b/packages/localizations/src/nb-NO.ts index f9ba465ce6c..0c7f61c7e2d 100644 --- a/packages/localizations/src/nb-NO.ts +++ b/packages/localizations/src/nb-NO.ts @@ -853,7 +853,7 @@ export const nbNO: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: undefined, actionText: undefined, diff --git a/packages/localizations/src/nl-NL.ts b/packages/localizations/src/nl-NL.ts index 62bc31bd29a..0d0c3abd0d7 100644 --- a/packages/localizations/src/nl-NL.ts +++ b/packages/localizations/src/nl-NL.ts @@ -849,7 +849,7 @@ export const nlNL: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: 'Krijg hulp', actionText: 'Heb je geen van deze?', diff --git a/packages/localizations/src/pl-PL.ts b/packages/localizations/src/pl-PL.ts index ed8d1a92189..473463fbe93 100644 --- a/packages/localizations/src/pl-PL.ts +++ b/packages/localizations/src/pl-PL.ts @@ -851,7 +851,7 @@ export const plPL: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: 'Uzyskaj pomoc', actionText: 'Nie używasz żadnej z tych metod?', diff --git a/packages/localizations/src/pt-BR.ts b/packages/localizations/src/pt-BR.ts index a60edcd061b..eca2005b02a 100644 --- a/packages/localizations/src/pt-BR.ts +++ b/packages/localizations/src/pt-BR.ts @@ -857,7 +857,7 @@ export const ptBR: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: undefined, actionText: undefined, diff --git a/packages/localizations/src/pt-PT.ts b/packages/localizations/src/pt-PT.ts index 55bc0455577..95abaf44256 100644 --- a/packages/localizations/src/pt-PT.ts +++ b/packages/localizations/src/pt-PT.ts @@ -850,7 +850,7 @@ export const ptPT: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: undefined, actionText: undefined, diff --git a/packages/localizations/src/ro-RO.ts b/packages/localizations/src/ro-RO.ts index ec14a0ed843..ad53f53f4b2 100644 --- a/packages/localizations/src/ro-RO.ts +++ b/packages/localizations/src/ro-RO.ts @@ -861,7 +861,7 @@ export const roRO: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: undefined, actionText: undefined, diff --git a/packages/localizations/src/ru-RU.ts b/packages/localizations/src/ru-RU.ts index 07564c9a279..dc0cb118c4e 100644 --- a/packages/localizations/src/ru-RU.ts +++ b/packages/localizations/src/ru-RU.ts @@ -869,7 +869,7 @@ export const ruRU: LocalizationResource = { web3WalletButtonsBlockButton: '{{provider|titleize}}', }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: 'Получить помощь', actionText: 'У вас нет ничего из этого?', diff --git a/packages/localizations/src/sk-SK.ts b/packages/localizations/src/sk-SK.ts index 317f0452f75..e2946a0bfdd 100644 --- a/packages/localizations/src/sk-SK.ts +++ b/packages/localizations/src/sk-SK.ts @@ -849,7 +849,7 @@ export const skSK: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: undefined, actionText: undefined, diff --git a/packages/localizations/src/sr-RS.ts b/packages/localizations/src/sr-RS.ts index c72650de0e1..aebe7f86094 100644 --- a/packages/localizations/src/sr-RS.ts +++ b/packages/localizations/src/sr-RS.ts @@ -852,7 +852,7 @@ export const srRS: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: undefined, actionText: undefined, diff --git a/packages/localizations/src/sv-SE.ts b/packages/localizations/src/sv-SE.ts index e5e660b1e76..29f359a0e9d 100644 --- a/packages/localizations/src/sv-SE.ts +++ b/packages/localizations/src/sv-SE.ts @@ -853,7 +853,7 @@ export const svSE: LocalizationResource = { web3WalletButtonsBlockButton: '{{provider|titleize}}', }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: 'Få hjälp', actionText: 'Har du inget av dessa?', diff --git a/packages/localizations/src/th-TH.ts b/packages/localizations/src/th-TH.ts index 3f4230e5028..37220b73d3e 100644 --- a/packages/localizations/src/th-TH.ts +++ b/packages/localizations/src/th-TH.ts @@ -844,7 +844,7 @@ export const thTH: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: undefined, actionText: undefined, diff --git a/packages/localizations/src/tr-TR.ts b/packages/localizations/src/tr-TR.ts index 4369d4a5b79..9cffd389264 100644 --- a/packages/localizations/src/tr-TR.ts +++ b/packages/localizations/src/tr-TR.ts @@ -854,7 +854,7 @@ export const trTR: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: undefined, actionText: undefined, diff --git a/packages/localizations/src/uk-UA.ts b/packages/localizations/src/uk-UA.ts index f635b55b8fa..0b8e3782288 100644 --- a/packages/localizations/src/uk-UA.ts +++ b/packages/localizations/src/uk-UA.ts @@ -850,7 +850,7 @@ export const ukUA: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: undefined, actionText: undefined, diff --git a/packages/localizations/src/vi-VN.ts b/packages/localizations/src/vi-VN.ts index 5291cfcbc82..b8c8d02d53f 100644 --- a/packages/localizations/src/vi-VN.ts +++ b/packages/localizations/src/vi-VN.ts @@ -850,7 +850,7 @@ export const viVN: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: undefined, actionText: undefined, diff --git a/packages/localizations/src/zh-CN.ts b/packages/localizations/src/zh-CN.ts index d9286a15c44..136b6e1955b 100644 --- a/packages/localizations/src/zh-CN.ts +++ b/packages/localizations/src/zh-CN.ts @@ -824,7 +824,7 @@ export const zhCN: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: undefined, actionText: undefined, diff --git a/packages/localizations/src/zh-TW.ts b/packages/localizations/src/zh-TW.ts index 0161ba13bc8..2e3ba091d9d 100644 --- a/packages/localizations/src/zh-TW.ts +++ b/packages/localizations/src/zh-TW.ts @@ -834,7 +834,7 @@ export const zhTW: LocalizationResource = { web3WalletButtonsBlockButton: undefined, }, }, - userVerification: { + reverification: { alternativeMethods: { actionLink: undefined, actionText: undefined, diff --git a/packages/react/src/isomorphicClerk.ts b/packages/react/src/isomorphicClerk.ts index cd2aba45245..6ae4033f8b7 100644 --- a/packages/react/src/isomorphicClerk.ts +++ b/packages/react/src/isomorphicClerk.ts @@ -542,7 +542,7 @@ export class IsomorphicClerk implements IsomorphicLoadedClerk { } if (this.preopenUserVerification !== null) { - clerkjs.__internal_openUserVerification(this.preopenUserVerification); + clerkjs.__internal_openReverification(this.preopenUserVerification); } if (this.preopenOneTap !== null) { @@ -688,17 +688,17 @@ export class IsomorphicClerk implements IsomorphicLoadedClerk { } }; - __internal_openUserVerification = (props?: __internal_UserVerificationModalProps): void => { + __internal_openReverification = (props?: __internal_UserVerificationModalProps): void => { if (this.clerkjs && this.#loaded) { - this.clerkjs.__internal_openUserVerification(props); + this.clerkjs.__internal_openReverification(props); } else { this.preopenUserVerification = props; } }; - __internal_closeUserVerification = (): void => { + __internal_closeReverification = (): void => { if (this.clerkjs && this.#loaded) { - this.clerkjs.__internal_closeUserVerification(); + this.clerkjs.__internal_closeReverification(); } else { this.preopenUserVerification = null; } diff --git a/packages/shared/src/react/hooks/useReverification.ts b/packages/shared/src/react/hooks/useReverification.ts index 61bf6fd3a93..67d14f5842c 100644 --- a/packages/shared/src/react/hooks/useReverification.ts +++ b/packages/shared/src/react/hooks/useReverification.ts @@ -34,7 +34,7 @@ type UseReverificationOptions = { }; type CreateReverificationHandlerParams = UseReverificationOptions & { - openUIComponent: Clerk['__internal_openUserVerification']; + openUIComponent: Clerk['__internal_openReverification']; }; function createReverificationHandler(params: CreateReverificationHandlerParams) { @@ -129,17 +129,17 @@ function useReverification< Fetcher extends (...args: any[]) => Promise | undefined, Options extends UseReverificationOptions, >(fetcher: Fetcher, options?: Options): UseReverificationResult { - const { __internal_openUserVerification } = useClerk(); + const { __internal_openReverification } = useClerk(); const fetcherRef = useRef(fetcher); const optionsRef = useRef(options); const handleReverification = useMemo(() => { const handler = createReverificationHandler({ - openUIComponent: __internal_openUserVerification, + openUIComponent: __internal_openReverification, ...optionsRef.current, })(fetcherRef.current); return [handler] as const; - }, [__internal_openUserVerification, fetcherRef.current, optionsRef.current]); + }, [__internal_openReverification, fetcherRef.current, optionsRef.current]); // Keep fetcher and options ref in sync useSafeLayoutEffect(() => { diff --git a/packages/types/src/clerk.ts b/packages/types/src/clerk.ts index eee17db9047..9163ef2ec03 100644 --- a/packages/types/src/clerk.ts +++ b/packages/types/src/clerk.ts @@ -167,12 +167,12 @@ export interface Clerk { * Opens the Clerk UserVerification component in a modal. * @param props Optional user verification configuration parameters. */ - __internal_openUserVerification: (props?: __internal_UserVerificationModalProps) => void; + __internal_openReverification: (props?: __internal_UserVerificationModalProps) => void; /** * Closes the Clerk user verification modal. */ - __internal_closeUserVerification: () => void; + __internal_closeReverification: () => void; /** * Opens the Google One Tap component. diff --git a/packages/types/src/localization.ts b/packages/types/src/localization.ts index 6e4708884c6..90693e43302 100644 --- a/packages/types/src/localization.ts +++ b/packages/types/src/localization.ts @@ -305,7 +305,7 @@ type _LocalizationResource = { action__signOutAll: LocalizationValue; }; }; - userVerification: { + reverification: { password: { title: LocalizationValue; subtitle: LocalizationValue;