@@ -55,7 +55,7 @@ def post(self):
             token = self.create_signed_value("token", "authorized")
             self.set_header("Content-Type", "application/json")
             self.finish(json_encode({
-                "token": token
+                "token": token.decode('utf-8')
             }))
         else:
             raise tornado.web.HTTPError(400)
@@ -190,4 +190,4 @@ def on_close(self):
         self.unsubscribe()
         logger.info("admin disconnected")
 
-    send = WebSocketHandler.write_message
\ No newline at end of file
+    send = WebSocketHandler.write_message