From eab7ad56fd3c380bf79a1fe51db0953cbe15744e Mon Sep 17 00:00:00 2001 From: Ezeudoh Tochukwu Date: Sat, 4 Oct 2025 14:43:46 +0100 Subject: [PATCH] fixed sub as string --- ellar_jwt/services.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ellar_jwt/services.py b/ellar_jwt/services.py index 4cfc1d5..1dbd990 100644 --- a/ellar_jwt/services.py +++ b/ellar_jwt/services.py @@ -66,6 +66,8 @@ def sign( jwt_payload = Token(jwt_config=_jwt_config).build( serialize_object(payload.copy()) ) + if "sub" in jwt_payload: + jwt_payload["sub"] = str(jwt_payload["sub"]) return jwt.encode( jwt_payload,