瀏覽代碼

:pencil2: Fixed merge issues

juan-filtering-match-pool
tomit4 2 年之前
父節點
當前提交
8778b9ca8d
共有 1 個檔案被更改,包括 4 行新增6 行删除
  1. 4
    6
      frontend/src/views/VerifyView.vue

+ 4
- 6
frontend/src/views/VerifyView.vue 查看文件

@@ -49,16 +49,14 @@ export default {
49 49
                 throw new Error('accessToken not in cookie store!')
50 50
         },
51 51
         async verifyActiveSession(hashedToken) {
52
-            const sessionData = await authenticator.verifyAuthSession(
53
-                hashedToken,
54
-            )
52
+            const sessionData =
53
+                await authenticator.verifyAuthSession(hashedToken)
55 54
             if (!sessionData.hashesMatch)
56 55
                 throw new Error('Hash is not in activeSessions!')
57 56
         },
58 57
         async isSessionTokenValid(hash) {
59
-            const sessionTokenIsValid = await authenticator.validateSession(
60
-                hash,
61
-            )
58
+            const sessionTokenIsValid =
59
+                await authenticator.validateSession(hash)
62 60
             if (sessionTokenIsValid.error) {
63 61
                 throw new Error(sessionTokenIsValid.error)
64 62
             } else return sessionTokenIsValid

Loading…
取消
儲存