@kode-frontend/session-interceptor
Version:
Session interceptor for handling jwt token update flow
24 lines (18 loc) • 395 B
text/typescript
import { AxiosInstance, InternalAxiosRequestConfig } from 'axios'
export type Tokens = Record<string, string>
export type ErrorData = {
code: string
status: number
}
export type BusinessError = {
code: string
message: string
}
export type THeader = {
key: string
value: string
}
export type THeadersGetterArg = {
instance: AxiosInstance
config: InternalAxiosRequestConfig
}