Skip to content

Commit

Permalink
Fix mutli auth again
Browse files Browse the repository at this point in the history
  • Loading branch information
karlpauls committed Feb 7, 2024
1 parent eb90d0a commit dd81a97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dd81a97

Please sign in to comment.