diff --git a/frontend/src/stores/auth.ts b/frontend/src/stores/auth.ts index 21ea84ea5..1aff7115b 100644 --- a/frontend/src/stores/auth.ts +++ b/frontend/src/stores/auth.ts @@ -284,8 +284,8 @@ export const useAuthStore = defineStore('auth', () => { try { const base64 = jwt .split('.')[1] - .replace('/-/g', '+') - .replace('/_/g', '/') + .replace(/-/g, '+') + .replace(/_/g, '/') const info = new UserModel(JSON.parse(atob(base64))) const ts = Math.round((new Date()).getTime() / MILLISECONDS_A_SECOND)