Skip to content

Commit eab7ad5

Browse files
committed
fixed sub as string
1 parent 25ed82d commit eab7ad5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ellar_jwt/services.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ def sign(
6666
jwt_payload = Token(jwt_config=_jwt_config).build(
6767
serialize_object(payload.copy())
6868
)
69+
if "sub" in jwt_payload:
70+
jwt_payload["sub"] = str(jwt_payload["sub"])
6971

7072
return jwt.encode(
7173
jwt_payload,

0 commit comments

Comments
 (0)