first commit
This commit is contained in:
19
react/types.ts
Normal file
19
react/types.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
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 };
|
||||
Reference in New Issue
Block a user