From dd40b0d9b9cc6268a611306ac4684a1af852b79d Mon Sep 17 00:00:00 2001 From: Ramires Viana <59319979+ramiresviana@users.noreply.github.com> Date: Thu, 16 Jan 2020 13:47:21 +0000 Subject: [PATCH] fix: frontend token validation fix filebrowser/filebrowser#638 --- frontend/src/utils/auth.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/frontend/src/utils/auth.js b/frontend/src/utils/auth.js index ae050ba3..7ae6c1fe 100644 --- a/frontend/src/utils/auth.js +++ b/frontend/src/utils/auth.js @@ -12,10 +12,6 @@ export function parseToken (token) { const data = JSON.parse(Base64.decode(parts[1])) - if (Math.round(new Date().getTime() / 1000) > data.exp) { - throw new Error('token expired') - } - localStorage.setItem('jwt', token) store.commit('setJWT', token) store.commit('setUser', data.user)