diff options
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; +}; |
