Skip to content

Commit 5760e91

Browse files
Replace RecoverableError with GeneralError
1 parent 5976cbc commit 5760e91

File tree

8 files changed

+9
-54
lines changed

8 files changed

+9
-54
lines changed

lib/build/recipe/webauthn/components/themes/error/recoverableError.d.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

lib/build/recipe/webauthn/types.d.ts

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/build/webauthnprebuiltui.js

Lines changed: 3 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/ts/recipe/webauthn/components/themes/error/recoverableError.tsx

Lines changed: 0 additions & 26 deletions
This file was deleted.

lib/ts/recipe/webauthn/components/themes/sendRecoveryEmail/recoverAccountForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import { useUserContext } from "../../../../../usercontext";
2222
import { Label } from "../../../../emailpassword/components/library";
2323
import BackButton from "../../../../emailpassword/components/library/backButton";
2424
import FormBase from "../../../../emailpassword/components/library/formBase";
25+
import GeneralError from "../../../../emailpassword/components/library/generalError";
2526
import { defaultEmailValidator } from "../../../../emailpassword/validators";
26-
import { RecoverableError } from "../error/recoverableError";
2727

2828
import type { RecoverFormProps } from "../../../types";
2929

@@ -107,7 +107,7 @@ export const PasskeyRecoverAccount = withOverride("PasskeyRecoverAccount", (prop
107107
</div>
108108
{errorLabel !== undefined && (
109109
<div data-supertokens="errorContainer">
110-
<RecoverableError errorMessageLabel={errorLabel} />
110+
<GeneralError error={errorLabel} />
111111
</div>
112112
)}
113113
<PasskeyRecoverAccountForm {...props} setError={setErrorLabel} />

lib/ts/recipe/webauthn/components/themes/signIn/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import SuperTokens from "../../../../../superTokens";
1919
import { useUserContext } from "../../../../../usercontext";
2020
import UserContextWrapper from "../../../../../usercontext/userContextWrapper";
2121
import { handleCallAPI } from "../../../../../utils";
22+
import GeneralError from "../../../../emailpassword/components/library/generalError";
2223
import { ContinueWithPasskeyTheme } from "../continueWithPasskey";
23-
import { RecoverableError } from "../error/recoverableError";
2424
import { ThemeBase } from "../themeBase";
2525

2626
import type { APIFormField } from "../../../../../types";
@@ -101,7 +101,7 @@ function PasskeySignInTheme(props: SignInThemeProps): JSX.Element {
101101
<UserContextWrapper userContext={props.userContext}>
102102
<ThemeBase userStyles={[rootStyle, props.config.recipeRootStyle, activeStyle]}>
103103
<div data-supertokens="passkeySignInContainer">
104-
{error !== "" && error !== null && <RecoverableError errorMessageLabel={error} />}
104+
{error !== "" && error !== null && <GeneralError error={error} />}
105105
<ContinueWithPasskeyTheme
106106
{...props}
107107
continueWithPasskeyClicked={handleWebauthnSignInClick}

lib/ts/recipe/webauthn/components/themes/signUp/confirmation.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import { useMemo } from "react";
1818
import { withOverride } from "../../../../../components/componentOverride/withOverride";
1919
import { useTranslation } from "../../../../../translation/translationContext";
2020
import Button from "../../../../emailpassword/components/library/button";
21+
import GeneralError from "../../../../emailpassword/components/library/generalError";
2122
import { PasskeyNotSupportedError } from "../error/passkeyNotSupportedError";
22-
import { RecoverableError } from "../error/recoverableError";
2323

2424
import { ContinueWithoutPasskey } from "./continueWithoutPasskey";
2525
import { PasskeyFeatureBlocks } from "./featureBlocks";
@@ -56,7 +56,7 @@ export const PasskeyConfirmation = withOverride(
5656
)}
5757
<PasskeyFeatureBlocks />
5858
{props.errorMessageLabel !== undefined && props.errorMessageLabel !== "" && (
59-
<RecoverableError errorMessageLabel={props.errorMessageLabel} />
59+
<GeneralError error={props.errorMessageLabel} />
6060
)}
6161
<div data-supertokens="passkeyConfirmationFooter">
6262
<Button

lib/ts/recipe/webauthn/types.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import type { SendRecoveryEmailForm } from "./components/features/sendRecoveryEm
3232
import type SignInForm from "./components/features/signIn";
3333
import type SignUpForm from "./components/features/signUp";
3434
import type { ContinueWithPasskeyWithOverride } from "./components/themes/continueWithPasskey";
35-
import type { RecoverableError } from "./components/themes/error/recoverableError";
3635
import type { PasskeyEmailSent } from "./components/themes/sendRecoveryEmail/emailSent";
3736
import type {
3837
PasskeyRecoverAccount,
@@ -119,7 +118,6 @@ export type ComponentOverrideMap = {
119118
PasskeySendRecoveryEmailForm_Override?: ComponentOverride<typeof SendRecoveryEmailForm>;
120119
PasskeyContinueWithPasskey_Override?: ComponentOverride<typeof ContinueWithPasskeyWithOverride>;
121120
PasskeyNotSupportedError_Override?: ComponentOverride<typeof PasskeyNotSupportedError>;
122-
PasskeyRecoverableError_Override?: ComponentOverride<typeof RecoverableError>;
123121
PasskeyEmailSent_Override?: ComponentOverride<typeof PasskeyEmailSent>;
124122
PasskeyRecoverAccountForm_Override?: ComponentOverride<typeof PasskeyRecoverAccountForm>;
125123
PasskeyRecoverAccount_Override?: ComponentOverride<typeof PasskeyRecoverAccount>;

0 commit comments

Comments
 (0)