mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-02 07:40:28 +00:00
remove interceptor
This commit is contained in:
parent
44942fb2ca
commit
8eda2a2741
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ export function usePublicApi(): PublicApi {
|
||||||
export function useUserApi(): UserClient {
|
export function useUserApi(): UserClient {
|
||||||
const authCtx = useAuthContext();
|
const authCtx = useAuthContext();
|
||||||
|
|
||||||
const requests = new Requests("", () => authCtx.token || "", {});
|
const requests = new Requests("", "", {});
|
||||||
requests.addResponseInterceptor(logger);
|
requests.addResponseInterceptor(logger);
|
||||||
requests.addResponseInterceptor(r => {
|
requests.addResponseInterceptor(r => {
|
||||||
if (r.status === 401) {
|
if (r.status === 401) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue