ソースを参照

:recycle: more detailed request.payload error message

neo
toj 2年前
コミット
55f0b3a9f7
1個のファイルの変更1行の追加1行の削除
  1. 1
    1
      backend/lib/routes/user/validate-session.js

+ 1
- 1
backend/lib/routes/user/validate-session.js ファイルの表示

@@ -33,7 +33,7 @@ module.exports = {
33 33
             try {
34 34
                 const validatedSessionToken =
35 35
                     userService.validateSession(hashedSessionToken)
36
-                if(validatedSessionToken?.email) throw new Error(`Could not validate token based on request: ${request}`)
36
+                if(validatedSessionToken?.email) throw new Error(`Could not validate token based on payload: ${request.payload}`)
37 37
                 
38 38
                 const user = await userService.findByUserEmail(
39 39
                     validatedSessionToken.email,

読み込み中…
キャンセル
保存