From d35676e2a3838d92bd82d5e3d2e6c683aa1e4e1c Mon Sep 17 00:00:00 2001 From: Glenn Date: Mon, 2 Oct 2023 07:05:54 +0000 Subject: [PATCH] fix: remove unnecessary token details Signed-off-by: Glenn --- src/handlers/handleAuthentication.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/handlers/handleAuthentication.ts b/src/handlers/handleAuthentication.ts index 3b26bdf..00998cf 100644 --- a/src/handlers/handleAuthentication.ts +++ b/src/handlers/handleAuthentication.ts @@ -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,