Explorar el Código

:recycle: more detailed request.payload error message

neo
toj hace 2 años
padre
commit
55f0b3a9f7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      backend/lib/routes/user/validate-session.js

+ 1
- 1
backend/lib/routes/user/validate-session.js Ver fichero

@@ -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,

Loading…
Cancelar
Guardar