diff options
author | 2020-12-31 10:36:38 +0000 | |
---|---|---|
committer | 2020-12-31 10:36:38 +0000 | |
commit | 6307d9294d28e8f2a7b9b779a050d417e4b2fc80 (patch) | |
tree | dc85769b19646175d7ac607349b6dd76589d3e8a | |
parent | Minor DevOps tweaks (diff) | |
parent | `jwt.encode` returns a string, not a bytestring. (diff) |
Merge pull request #50 from python-discord/jwt-fix
-rw-r--r-- | backend/routes/auth/authorize.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/backend/routes/auth/authorize.py b/backend/routes/auth/authorize.py index 2509109..975936a 100644 --- a/backend/routes/auth/authorize.py +++ b/backend/routes/auth/authorize.py @@ -55,6 +55,4 @@ class AuthorizeRoute(Route): token = jwt.encode(user_details, SECRET_KEY, algorithm="HS256") - return JSONResponse({ - "token": token.decode() - }) + return JSONResponse({"token": token}) |