aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-12-31 10:36:38 +0000
committerGravatar GitHub <[email protected]>2020-12-31 10:36:38 +0000
commit6307d9294d28e8f2a7b9b779a050d417e4b2fc80 (patch)
treedc85769b19646175d7ac607349b6dd76589d3e8a
parentMinor 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.py4
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})