Преглед на файлове

: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
                 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…
Отказ
Запис