From 655ec610fcce8dd7748f10772d520bdff4f7c78e Mon Sep 17 00:00:00 2001 From: Arne Rief Date: Fri, 19 Dec 2025 20:03:03 +0100 Subject: Basic setup & login --- frontend/src/types/login.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 frontend/src/types/login.ts (limited to 'frontend/src/types/login.ts') 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; +}; -- cgit v1.2.3