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);
|
const pem = jwkToPem(key as JWK);
|
||||||
try {
|
try {
|
||||||
const res = verify(token, pem, { algorithms: [key.alg] });
|
const res = verify(token, pem, { algorithms: [key.alg] });
|
||||||
console.log(res);
|
|
||||||
return typeof res === "object" && "sub" in res;
|
return typeof res === "object" && "sub" in res;
|
||||||
} catch (_err) {
|
} catch (_err) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user