feat: move to typeorm
Some checks failed
TrafficCue Server CI / check (push) Failing after 23s

This commit is contained in:
Cfp
2025-08-21 12:18:56 +02:00
parent b8549c6deb
commit 03e602c814
9 changed files with 380 additions and 64 deletions

View File

@ -1,3 +1,4 @@
import type { JWTPayload } from "hono/utils/jwt/types";
import { decode, verify, type Algorithm } from "jsonwebtoken";
import jwkToPem, { type JWK } from "jwk-to-pem";
@ -44,3 +45,7 @@ export function getTokenUID(token: string): string | null {
}
return null;
}
export function getTokenData(token: string): JWTPayload {
return decode(token) as JWTPayload;
}