Function createRefreshTokenInterceptorHandler
- createRefreshTokenInterceptorHandler(getAccessTokenFn: (() => string), refreshTokenFn: (() => Promise<void>), logoutFn: (() => Promise<void>), errorHandlerFn?: ((error: unknown) => Promise<void>)): FetcherErrorResponseInterceptor
-
Parameters
-
getAccessTokenFn: (() => string)
-
- (): string
-
Returns string
-
refreshTokenFn: (() => Promise<void>)
-
- (): Promise<void>
-
Returns Promise<void>
-
logoutFn: (() => Promise<void>)
-
- (): Promise<void>
-
Returns Promise<void>
-
Optional
errorHandlerFn: ((error: unknown) => Promise<void>)
-
- (error: unknown): Promise<void>
-
Returns Promise<void>
Returns FetcherErrorResponseInterceptor