From 9f441be9b8163b19432d1c52b3da38977d56ff79 Mon Sep 17 00:00:00 2001 From: mbaldwin Date: Thu, 13 Sep 2018 17:20:06 -0700 Subject: [PATCH] jti should be a string --- jwcrypto/jwt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jwcrypto/jwt.py b/jwcrypto/jwt.py index a633cfe..047bf63 100644 --- a/jwcrypto/jwt.py +++ b/jwcrypto/jwt.py @@ -280,7 +280,7 @@ def _add_time_claim(self, name, claims, defval): def _add_jti_claim(self, claims): if 'jti' in claims or 'jti' not in self._reg_claims: return - claims['jti'] = uuid.uuid4() + claims['jti'] = str(uuid.uuid4()) def _add_default_claims(self, claims): if self._reg_claims is None: