From dd81a9792b893b9297ed0d85092d2d95c82b1308 Mon Sep 17 00:00:00 2001 From: Karl Pauls Date: Wed, 7 Feb 2024 20:03:05 +0100 Subject: [PATCH] Fix mutli auth again --- src/utils/auth.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/auth.js b/src/utils/auth.js index 7f176bd..fa99356 100644 --- a/src/utils/auth.js +++ b/src/utils/auth.js @@ -35,6 +35,8 @@ export async function getUsers(req, env) { // If we have an empty token there was an anon user in the session if (!token || token.trim().length === 0) { users.push({ email: 'anonymous' }); + // eslint-disable-next-line no-continue + continue; } const { user_id: userId, created_at: createdAt, expires_in: expiresIn } = decodeJwt(token); const expires = Number(createdAt) + Number(expiresIn);