initial commit
This commit is contained in:
14
frontend/src/types/auth.ts
Normal file
14
frontend/src/types/auth.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
export interface User {
|
||||
preferred_username: string
|
||||
email: string | null
|
||||
full_name: string | null
|
||||
}
|
||||
|
||||
export interface AuthContextType {
|
||||
user: User | null
|
||||
isLoading: boolean
|
||||
isAuthenticated: boolean
|
||||
login: () => void
|
||||
logout: () => Promise<void>
|
||||
refreshUser: () => Promise<void>
|
||||
}
|
||||
1
frontend/src/types/index.ts
Normal file
1
frontend/src/types/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './auth'
|
||||
Reference in New Issue
Block a user