summaryrefslogtreecommitdiff
path: root/jwt/api_jws.py
diff options
context:
space:
mode:
authorJosé Padilla <jpadilla@webapplicate.com>2020-08-22 11:55:43 -0400
committerJosé Padilla <jpadilla@webapplicate.com>2020-08-22 11:57:18 -0400
commit3a44c74ebf39f15c0633247e5d70c414840a4523 (patch)
treef44a64f97556ad69ccc5e23d2428f5c11404172a /jwt/api_jws.py
parentd926a4db6ecea382556c026779541b377e36d311 (diff)
downloadpyjwt-string-tokens.tar.gz
Return tokens as string not bytesstring-tokens
Diffstat (limited to 'jwt/api_jws.py')
-rw-r--r--jwt/api_jws.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/jwt/api_jws.py b/jwt/api_jws.py
index 287dbf4..84465c1 100644
--- a/jwt/api_jws.py
+++ b/jwt/api_jws.py
@@ -126,7 +126,9 @@ class PyJWS:
segments.append(base64url_encode(signature))
- return b".".join(segments)
+ encoded_string = b".".join(segments)
+
+ return encoded_string.decode("utf-8")
def decode(
self,