Skip to main content

Interface: RequestClient

Properties

cleanup

cleanup: (reason?: DisconnectReason) => Promise<void>

Type declaration

▸ (reason?): Promise<void>

Parameters
NameType
reason?DisconnectReason
Returns

Promise<void>


expires

expires: number


fetcher

fetcher: (input: URL | RequestInfo, init?: RequestInit) => Promise<Response>(input: string | URL | Request, init?: RequestInit) => Promise<Response>

Type declaration

▸ (input, init?): Promise<Response>

Parameters
NameType
inputURL | RequestInfo
init?RequestInit
Returns

Promise<Response>

▸ (input, init?): Promise<Response>

Parameters
NameType
inputstring | URL | Request
init?RequestInit
Returns

Promise<Response>


refreshToken

refreshToken: () => Promise<boolean>

Type declaration

▸ (): Promise<boolean>

Returns

Promise<boolean>


token

token: string