feat: /internal/renewal/pending

This commit is contained in:
2026-08-20 21:01:22 +07:00
parent 05ded7d7ea
commit 0a58a41930
10 changed files with 250 additions and 1 deletions

View File

@@ -37,7 +37,11 @@ def generate_jwt(payload: dict[str, Any]) -> str:
def get_kid_from_token(token: str) -> str | None:
return jwt.get_unverified_header(token).get("kid")
try:
header = jwt.get_unverified_header(token)
return header.get("kid")
except jwt.exceptions.PyJWTError:
return
def decode_jwt(