diff options
| author | Arne Rief <riearn@proton.me> | 2025-12-19 20:03:03 +0100 |
|---|---|---|
| committer | Arne Rief <riearn@proton.me> | 2025-12-19 20:03:03 +0100 |
| commit | 655ec610fcce8dd7748f10772d520bdff4f7c78e (patch) | |
| tree | 35b79f30d2cb5aea88cf76ce27f480da93cefd32 /frontend/src/types | |
Basic setup & login
Diffstat (limited to 'frontend/src/types')
| -rw-r--r-- | frontend/src/types/login.ts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/frontend/src/types/login.ts b/frontend/src/types/login.ts new file mode 100644 index 0000000..73168be --- /dev/null +++ b/frontend/src/types/login.ts @@ -0,0 +1,21 @@ +export type AuthorizedUser = { + id: number; + email: string; + createdAt: Date; +}; + +export type LoginFormData = { + email: string; + password: string; +}; + +export type LoginResponse = { + message: string; + user: AuthorizedUser; + token: string; +}; + +export type ErrorResponse = { + message: string; + error?: unknown; +}; |
