瀏覽代碼

:pencil2: Fixed merge issues

tags/0.0.4
tomit4 2 年之前
父節點
當前提交
e6f78c3445
共有 1 個檔案被更改,包括 4 行新增6 行删除
  1. 4
    6
      frontend/src/views/VerifyView.vue

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

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

Loading…
取消
儲存