fix(core): use public key for JWT decoding
This commit is contained in:
@@ -36,7 +36,7 @@ def generate_jwt(payload: dict[str, Any]) -> str:
|
||||
|
||||
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user