22 lines
392 B
TypeScript
22 lines
392 B
TypeScript
export interface User {
|
|||
|
|
id: number
|
||
|
|
email: string
|
||
|
|
email_verified: boolean
|
||
|
|
email_verified_at: string | null
|
||
|
|
created_at: string | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface AuthResponse {
|
||
|
|
user: User
|
||
|
|
token: string
|
||
|
|
expires_at: string
|
||
|
|
}
|
||
|
|
|
||
|
|
/** Shape of every error body returned by the API. */
|
||
|
|
export interface ApiErrorBody {
|
||
|
|
error: {
|
||
|
|
message: string
|
||
|
|
details?: Record<string, string[]>
|
||
|
|
}
|
||
|
|
}
|