feat: Implement authentication store and update login view

This commit is contained in:
2025-12-08 21:30:15 +01:00
parent 982bc3bdb8
commit 32ce3b837a
7 changed files with 479 additions and 40 deletions

16
src/types/authTypes.ts Normal file
View File

@@ -0,0 +1,16 @@
type token = {
token: string
user: user
}
type user = {
id: number
name: string
}
type credentials = {
username: string
password: string
}
export type { token, user, credentials }