Removing faked error.

This commit is contained in:
mike12345567 2021-12-17 17:57:40 +00:00
parent 52eef17da0
commit 0afc34af69
1 changed files with 0 additions and 3 deletions

View File

@ -37,9 +37,6 @@ module.exports = (
try {
// check the actual user is authenticated first, try header or cookie
const headerToken = ctx.request.headers[Headers.TOKEN]
if (headerToken) {
throw { name: "JsonWebTokenError" }
}
const authCookie = getCookie(ctx, Cookies.Auth) || openJwt(headerToken)
let authenticated = false,
user = null,