We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e93ac8b commit 84051edCopy full SHA for 84051ed
src/components/providers/auth.tsx
@@ -80,7 +80,9 @@ client.interceptors.response.use(
80
const userId = response.headers[HEADER_KEYS.USER_ID] || '';
81
82
const expiration = response.headers[HEADER_KEYS.EXPIRY]
83
- ? dayjs.unix(parseInt(response.headers[HEADER_KEYS.EXPIRY])).toISOString()
+ ? dayjs
84
+ .unix(parseInt(response.headers[HEADER_KEYS.EXPIRY], 10))
85
+ .toISOString()
86
: dayjs().add(1, 'hour').toISOString();
87
88
if (accessToken && refreshToken && userId && expiration) {
0 commit comments