Skip to content

Commit

Permalink
fix: remove unnecessary token details
Browse files Browse the repository at this point in the history
Signed-off-by: Glenn <glenn@not-tech.support>
  • Loading branch information
promise committed Oct 2, 2023
1 parent 066f1e2 commit d35676e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/handlers/handleAuthentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ export default async function handleAuthentication(request: FetchEvent["request"

const redirectUrl = new URL(systems[system].callbackUri);
redirectUrl.searchParams.set("shauth", await sign({
aud: system,
exp: Date.now() + 1000 * 60,
iat: Date.now(),
iss: "shauth",
sub: "token",
id: user.id,
name: member.nick ?? user.global_name ?? user.username,
userFlags,
Expand Down

0 comments on commit d35676e

Please sign in to comment.