fix(core): use public key for JWT decoding

This commit is contained in:
2026-07-24 11:41:26 +07:00
parent 2f6fa66401
commit eb35f2acad

View File

@@ -36,7 +36,7 @@ def generate_jwt(payload: dict[str, Any]) -> str:
def decode_jwt(token: str) -> dict[str, Any]: def decode_jwt(token: str) -> dict[str, Any]:
return jwt.decode(token, cfg.private_key, "RS256") return jwt.decode(token, cfg.public_key, "RS256")
def generate_pair(user_id: int, iss: ProvidersType) -> KeyPair: def generate_pair(user_id: int, iss: ProvidersType) -> KeyPair: