Files
InsightRadar/frontend/src/auth.types.ts
T
2026-03-11 01:33:21 +08:00

37 lines
613 B
TypeScript

export interface UserProfile {
id: number
email: string
nickname: string | null
avatar_url: string | null
gender: string
created_at: string
}
export interface AuthTokenResponse {
access_token: string
token_type: string
expires_in: number
user: UserProfile
}
export interface MessageResponse {
message: string
}
export interface LoginPayload {
email: string
password: string
}
export interface LoginWithCodePayload {
email: string
verification_code: string
}
export interface RegisterPayload {
email: string
password: string
verification_code: string
nickname?: string
}