Skip to content

Commit 84051ed

Browse files
author
Guillermo Machado
committed
fix: fix sonar q
1 parent e93ac8b commit 84051ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/providers/auth.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ client.interceptors.response.use(
8080
const userId = response.headers[HEADER_KEYS.USER_ID] || '';
8181

8282
const expiration = response.headers[HEADER_KEYS.EXPIRY]
83-
? dayjs.unix(parseInt(response.headers[HEADER_KEYS.EXPIRY])).toISOString()
83+
? dayjs
84+
.unix(parseInt(response.headers[HEADER_KEYS.EXPIRY], 10))
85+
.toISOString()
8486
: dayjs().add(1, 'hour').toISOString();
8587

8688
if (accessToken && refreshToken && userId && expiration) {

0 commit comments

Comments
 (0)