Updated log messages.
This commit is contained in:
1 parent
4c202741c2
commit
1fcaa1c9fc
2 files changed
+195
-77
No files matched your search
+2
-2
@@ -17,7 +17,7 @@ export const useSession = createMiddleware(async (req, res, next) => {
|
||||
const session = await findSession(req);
|
||||
|
||||
if (!session) {
|
||||
log('useSession:session-not-found');
|
||||
log('useSession: Session not found.');
|
||||
return badRequest(res);
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ export const useAuth = createMiddleware(async (req, res, next) => {
|
||||
log({ token, payload, user, shareToken });
|
||||
|
||||
if (!user && !shareToken) {
|
||||
log('useAuth:user-not-authorized');
|
||||
log('useAuth: User not authorized.');
|
||||
return unauthorized(res);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user