From e910df61b1d218bc3a8d470ea88c53d3fb863577 Mon Sep 17 00:00:00 2001 From: Jeffrey Linwood Date: Mon, 22 May 2017 16:46:31 -0500 Subject: [PATCH] Create a string from bytes for Python 3 --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 883c863..893006b 100644 --- a/app.py +++ b/app.py @@ -81,7 +81,7 @@ def token(): token.add_grant(chat_grant) # Return token info as JSON - return jsonify(identity=identity, token=token.to_jwt()) + return jsonify(identity=identity, token=token.to_jwt().decode('utf-8')) # Notify - create a device binding from a POST HTTP request @app.route('/register', methods=['POST'])