We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05930ca commit d78e83fCopy full SHA for d78e83f
middleware/passport.js
@@ -28,7 +28,7 @@ module.exports = async function checkAuth(ctx, next) {
28
29
if (db.find((q) => q.login === duser.login)) {
30
ctx.session.user = duser;
31
- next();
+ await next();
32
return;
33
}
34
} catch (err) {
0 commit comments