23 lines
324 B
TypeScript
23 lines
324 B
TypeScript
export interface AuthError {
|
|
title: string
|
|
detail: string
|
|
source: {
|
|
pointer: string
|
|
parameter: string
|
|
}
|
|
}
|
|
|
|
export interface ApiError {
|
|
base: string[]
|
|
}
|
|
|
|
export interface ErrorResponse {
|
|
errors: AuthError[] | ApiError
|
|
}
|
|
|
|
export type AuthToken = string
|
|
|
|
export interface AuthPayload {
|
|
token: AuthToken
|
|
}
|