Skip to content

Commit 51b50c0

Browse files
committed
fix(react): Add missing exports
1 parent f207de3 commit 51b50c0

File tree

5 files changed

+63
-25
lines changed

5 files changed

+63
-25
lines changed

packages/react/src/auth/forms/mfa/sms-multi-factor-enrollment-form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function useSmsMultiFactorEnrollmentPhoneAuthFormAction() {
2828
);
2929
}
3030

31-
type UseSmsMultiFactorEnrollmentPhoneNumberForm = {
31+
export type UseSmsMultiFactorEnrollmentPhoneNumberForm = {
3232
recaptchaVerifier: RecaptchaVerifier;
3333
onSuccess: (verificationId: string, displayName?: string) => void;
3434
formatPhoneNumber?: (phoneNumber: string) => string;

packages/react/src/auth/forms/mfa/totp-multi-factor-assertion-form.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function useTotpMultiFactorAssertionFormAction() {
1616
);
1717
}
1818

19-
type UseTotpMultiFactorAssertionForm = {
19+
export type UseTotpMultiFactorAssertionForm = {
2020
hint: MultiFactorInfo;
2121
onSuccess: (credential: UserCredential) => void;
2222
};
@@ -43,7 +43,7 @@ export function useTotpMultiFactorAssertionForm({ hint, onSuccess }: UseTotpMult
4343
});
4444
}
4545

46-
type TotpMultiFactorAssertionFormProps = {
46+
export type TotpMultiFactorAssertionFormProps = {
4747
hint: MultiFactorInfo;
4848
onSuccess?: (credential: UserCredential) => void;
4949
};

packages/react/src/auth/forms/mfa/totp-multi-factor-enrollment-form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function useTotpMultiFactorSecretGenerationFormAction() {
1818
}, [ui]);
1919
}
2020

21-
type UseTotpMultiFactorEnrollmentForm = {
21+
export type UseTotpMultiFactorEnrollmentForm = {
2222
onSuccess: (secret: TotpSecret, displayName: string) => void;
2323
};
2424

packages/react/src/auth/index.ts

Lines changed: 57 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
* limitations under the License.
1515
*/
1616

17+
/**
18+
* Forms
19+
*/
20+
1721
export {
1822
EmailLinkAuthForm,
1923
type EmailLinkAuthFormProps,
@@ -27,6 +31,14 @@ export {
2731
useForgotPasswordAuthFormAction,
2832
useForgotPasswordAuthForm,
2933
} from "./forms/forgot-password-auth-form";
34+
export {
35+
MultiFactorAuthAssertionForm,
36+
type MultiFactorAuthAssertionFormProps,
37+
} from "./forms/multi-factor-auth-assertion-form";
38+
export {
39+
MultiFactorAuthEnrollmentForm,
40+
type MultiFactorAuthEnrollmentFormProps,
41+
} from "./forms/multi-factor-auth-enrollment-form";
3042
export {
3143
PhoneAuthForm,
3244
type PhoneAuthFormProps,
@@ -49,17 +61,62 @@ export {
4961
useRequireDisplayName,
5062
} from "./forms/sign-up-auth-form";
5163

64+
export {
65+
useSmsMultiFactorAssertionPhoneFormAction,
66+
useSmsMultiFactorAssertionVerifyFormAction,
67+
SmsMultiFactorAssertionForm,
68+
type SmsMultiFactorAssertionFormProps,
69+
} from "./forms/mfa/sms-multi-factor-assertion-form";
70+
export {
71+
useSmsMultiFactorEnrollmentPhoneAuthFormAction,
72+
useSmsMultiFactorEnrollmentPhoneNumberForm,
73+
useMultiFactorEnrollmentVerifyPhoneNumberFormAction,
74+
useMultiFactorEnrollmentVerifyPhoneNumberForm,
75+
SmsMultiFactorEnrollmentForm,
76+
MultiFactorEnrollmentVerifyPhoneNumberForm,
77+
type UseSmsMultiFactorEnrollmentPhoneNumberForm,
78+
type SmsMultiFactorEnrollmentFormProps,
79+
} from "./forms/mfa/sms-multi-factor-enrollment-form";
80+
export {
81+
useTotpMultiFactorAssertionFormAction,
82+
useTotpMultiFactorAssertionForm,
83+
TotpMultiFactorAssertionForm,
84+
type UseTotpMultiFactorAssertionForm,
85+
type TotpMultiFactorAssertionFormProps,
86+
} from "./forms/mfa/totp-multi-factor-assertion-form";
87+
export {
88+
useTotpMultiFactorSecretGenerationFormAction,
89+
useTotpMultiFactorSecretGenerationForm,
90+
useMultiFactorEnrollmentVerifyTotpFormAction,
91+
useMultiFactorEnrollmentVerifyTotpForm,
92+
MultiFactorEnrollmentVerifyTotpForm,
93+
TotpMultiFactorEnrollmentForm,
94+
type UseTotpMultiFactorEnrollmentForm,
95+
type TotpMultiFactorEnrollmentFormProps,
96+
} from "./forms/mfa/totp-multi-factor-enrollment-form";
97+
/**
98+
* Screens
99+
*/
100+
52101
export { EmailLinkAuthScreen, type EmailLinkAuthScreenProps } from "./screens/email-link-auth-screen";
53102
export { ForgotPasswordAuthScreen, type ForgotPasswordAuthScreenProps } from "./screens/forgot-password-auth-screen";
54103
export {
55104
MultiFactorAuthAssertionScreen,
56105
type MultiFactorAuthAssertionScreenProps,
57106
} from "./screens/multi-factor-auth-assertion-screen";
107+
export {
108+
MultiFactorAuthEnrollmentScreen,
109+
type MultiFactorAuthEnrollmentScreenProps,
110+
} from "./screens/multi-factor-auth-enrollment-screen";
58111
export { OAuthScreen, type OAuthScreenProps } from "./screens/oauth-screen";
59112
export { PhoneAuthScreen, type PhoneAuthScreenProps } from "./screens/phone-auth-screen";
60113
export { SignInAuthScreen, type SignInAuthScreenProps } from "./screens/sign-in-auth-screen";
61114
export { SignUpAuthScreen, type SignUpAuthScreenProps } from "./screens/sign-up-auth-screen";
62115

116+
/**
117+
* OAuth
118+
*/
119+
63120
export { AppleSignInButton, AppleLogo, type AppleSignInButtonProps } from "./oauth/apple-sign-in-button";
64121
export { FacebookSignInButton, FacebookLogo, type FacebookSignInButtonProps } from "./oauth/facebook-sign-in-button";
65122
export { GitHubSignInButton, GitHubLogo, type GitHubSignInButtonProps } from "./oauth/github-sign-in-button";
@@ -71,23 +128,3 @@ export {
71128
} from "./oauth/microsoft-sign-in-button";
72129
export { TwitterSignInButton, TwitterLogo, type TwitterSignInButtonProps } from "./oauth/twitter-sign-in-button";
73130
export { OAuthButton, useSignInWithProvider, type OAuthButtonProps } from "./oauth/oauth-button";
74-
75-
export {
76-
MultiFactorAuthEnrollmentScreen,
77-
type MultiFactorAuthEnrollmentScreenProps,
78-
} from "./screens/multi-factor-auth-enrollment-screen";
79-
export {
80-
MultiFactorAuthEnrollmentForm,
81-
type MultiFactorAuthEnrollmentFormProps,
82-
} from "./forms/multi-factor-auth-enrollment-form";
83-
84-
export {
85-
useSmsMultiFactorAssertionPhoneFormAction,
86-
useSmsMultiFactorAssertionVerifyFormAction,
87-
SmsMultiFactorAssertionForm,
88-
type SmsMultiFactorAssertionFormProps,
89-
} from "./forms/mfa/sms-multi-factor-assertion-form";
90-
export {
91-
useTotpMultiFactorAssertionFormAction,
92-
TotpMultiFactorAssertionForm,
93-
} from "./forms/mfa/totp-multi-factor-assertion-form";

packages/react/src/components/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export {
2323
useCountries,
2424
useDefaultCountry,
2525
} from "./country-selector";
26-
export { Policies, type PolicyProps, type PolicyURL } from "./policies";
2726
export { Divider, type DividerProps } from "./divider";
2827
export { form } from "./form";
28+
export { Policies, type PolicyProps, type PolicyURL } from "./policies";
29+
export { RedirectError } from "./redirect-error";

0 commit comments

Comments
 (0)