feat: Implement authentication store and update login view
This commit is contained in:
16
src/types/authTypes.ts
Normal file
16
src/types/authTypes.ts
Normal 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 }
|
||||
|
||||
Reference in New Issue
Block a user