This commit is contained in:
AndrewTrieu
2023-03-12 12:43:33 +02:00
parent f14618b7cc
commit d6d09df845
11 changed files with 28 additions and 31 deletions

View File

@@ -2,7 +2,6 @@ const restrictedPaths = ["/topics", "/quiz"];
const authMiddleware = async (context, next) => {
const user = await context.state.session.get("user");
console.log(user);
if (
!user &&
restrictedPaths.some((path) =>