first commit

This commit is contained in:
2026-04-01 15:17:46 +02:00
commit d50ab5f7bf
19 changed files with 2554 additions and 0 deletions

19
react/types.ts Normal file
View 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 };