Skip to content

Commit

Permalink
fix: http client and auth
Browse files Browse the repository at this point in the history
  • Loading branch information
akshatmittal61 authored Jan 7, 2025
1 parent b6287a8 commit d685918
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions connections/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,6 @@ export const http = new HttpWrapper(
"Content-Type": "application/json",
},
withCredentials: true,
timeout: 10000,
timeoutErrorMessage: "HTTP Request timed out",
})
);

Expand All @@ -137,6 +135,4 @@ export const server = axios.create({
"Content-Type": "application/json",
},
withCredentials: true,
timeout: 10000,
timeoutErrorMessage: "HTTP Request timed out",
});
2 changes: 1 addition & 1 deletion pages/api/v1/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const getCookiesToSet = (endpoint: string, headers: any) => {
cookiesToSet.push({
name: "accessToken",
value: accessToken,
maxAge: 15 * 60 * 1000,
maxAge: 1 * 60 * 1000,
});
}
if (refreshToken) {
Expand Down

0 comments on commit d685918

Please sign in to comment.