Skip to content

Commit 2581ac3

Browse files
committed
refactor(core): createEmailFormSchema -> createSignInAuthFormSchema
1 parent e44cda0 commit 2581ac3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/schemas.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const LoginTypes = ["email", "phone", "anonymous", "emailLink", "google"]
2323
export type LoginType = (typeof LoginTypes)[number];
2424
export type AuthMode = "signIn" | "signUp";
2525

26-
export function createEmailFormSchema(ui: FirebaseUIConfiguration) {
26+
export function createSignInAuthFormSchema(ui: FirebaseUIConfiguration) {
2727
return z.object({
2828
email: z.string().email({ message: getTranslation(ui, "errors", "invalidEmail") }),
2929
password: z.string().min(8, { message: getTranslation(ui, "errors", "weakPassword") }),
@@ -55,7 +55,7 @@ export function createPhoneFormSchema(ui: FirebaseUIConfiguration) {
5555
});
5656
}
5757

58-
export type EmailFormSchema = z.infer<ReturnType<typeof createEmailFormSchema>>;
58+
export type SignInAuthFormSchema = z.infer<ReturnType<typeof createSignInAuthFormSchema>>;
5959
export type ForgotPasswordFormSchema = z.infer<ReturnType<typeof createForgotPasswordFormSchema>>;
6060
export type EmailLinkFormSchema = z.infer<ReturnType<typeof createEmailLinkFormSchema>>;
6161
export type PhoneFormSchema = z.infer<ReturnType<typeof createPhoneFormSchema>>;

0 commit comments

Comments
 (0)