feat: remove logging of JWT payloads
Some checks failed
TrafficCue Server CI / check (push) Failing after 28s
Some checks failed
TrafficCue Server CI / check (push) Failing after 28s
This commit is contained in:
@ -31,7 +31,6 @@ export async function verifyToken(token: string): Promise<boolean> {
|
||||
const pem = jwkToPem(key as JWK);
|
||||
try {
|
||||
const res = verify(token, pem, { algorithms: [key.alg] });
|
||||
console.log(res);
|
||||
return typeof res === "object" && "sub" in res;
|
||||
} catch (_err) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user