Properties
Private Optional currentToken
currentToken: string
Private tokenExpires
tokenExpires: number = 0
Methods
fetch
- fetch(request: RequestAsyncRequest): Promise<{ error: string; success: false } | { success: true; value: RequestAsyncResponse }>
-
Parameters
-
request: RequestAsyncRequest
Returns Promise<{ error: string; success: false } | { success: true; value: RequestAsyncResponse }>
getToken
- getToken(): Promise<string>
Private refreshToken
- refreshToken(): Promise<void>