|
|
@ -30,7 +30,6 @@ module.exports = async (ctx, next) => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
console.log("YEETY", token, ctx.config.jwtSecret); |
|
|
|
|
|
ctx.jwtPayload = jwt.verify(token, ctx.config.jwtSecret) |
|
|
ctx.jwtPayload = jwt.verify(token, ctx.config.jwtSecret) |
|
|
ctx.isAuthenticated = true |
|
|
ctx.isAuthenticated = true |
|
|
} catch (err) { |
|
|
} catch (err) { |
|
|
|