We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d45a6a0 commit e785e24Copy full SHA for e785e24
frontend/src/APIClients/BaseAPIClient.ts
@@ -36,7 +36,7 @@ baseAPIClient.interceptors.request.use(async (config: AxiosRequestConfig) => {
36
if (
37
decodedToken &&
38
// If it a string (and not an object) then something went wrong
39
- (typeof decodedToken === "string" ||
+ (typeof decodedToken === "string" ||
40
// Checks the time of expiration in seconds (division by 1000 because its in ms)
41
decodedToken.exp <= Math.round(new Date().getTime() / 1000))
42
) {
0 commit comments