20 lines
538 B
TypeScript
20 lines
538 B
TypeScript
export type AuthProviderKey = "google" | "slack" | (string & {});
|
|
|
|
export type AuthProviderAvailability = Partial<Record<AuthProviderKey, boolean>>;
|
|
|
|
export type LoginMode = "signIn" | "register";
|
|
|
|
export type AuthSubmitValues = {
|
|
name: string;
|
|
email: string;
|
|
password: string;
|
|
passwordConfirm: string;
|
|
};
|
|
|
|
export type PasswordResetMode = "reset" | "create";
|
|
|
|
export type PasswordResetTokenState =
|
|
| { status: "loading" }
|
|
| { status: "invalid"; error: string }
|
|
| { status: "valid"; email: string; mode: PasswordResetMode };
|