Commit 22881d6d authored by Fence's avatar Fence 🌈

jwt token was sent out as bytes casted to str insteadof a proper string

parent fdc46e81
......@@ -55,4 +55,4 @@ def issue_token(email, secret):
payload["exp"] = datetime.utcnow() + timedelta(minutes=30)
# TODO maybe add jti?
token = jwt.encode(payload, secret, algorithm='HS256')
return str(token)
return token.decode("utf-8")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment