From 8ed1a5e3d48eb5eb09a9289ad82dbbdde1c4b4b6 Mon Sep 17 00:00:00 2001 From: Gabriel Carneiro Date: Wed, 4 Oct 2023 23:18:03 -0300 Subject: [PATCH] update --- src/stream_auth/routes/stream.py | 2 +- src/stream_auth/routes/user.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stream_auth/routes/stream.py b/src/stream_auth/routes/stream.py index 0d66255..a10b581 100644 --- a/src/stream_auth/routes/stream.py +++ b/src/stream_auth/routes/stream.py @@ -40,5 +40,5 @@ def publish_check(): print('vish') return Response('Invalid Stream Key', 401) - jwt.verify(stream_key.encode('utf-8')) + jwt.verify(stream_key) return Response('OK', 200) diff --git a/src/stream_auth/routes/user.py b/src/stream_auth/routes/user.py index c4d24b3..dc43fbc 100644 --- a/src/stream_auth/routes/user.py +++ b/src/stream_auth/routes/user.py @@ -26,7 +26,7 @@ def create(): logging.info('User %s created with stream key %s', new_user.username, new_user.stream_key) - res = {'username': new_user.username, 'stream_key': new_user.stream_key.decode('utf-8')} + res = {'username': new_user.username, 'stream_key': new_user.stream_key} return make_response(jsonify(res), 200)