From d2e84886f6df109718b59f1e2a05d6ce787db6b8 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Fri, 15 Oct 2021 00:39:36 -0700 Subject: [PATCH] Fix jwt encoding --- plexpy/webauth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/webauth.py b/plexpy/webauth.py index e081c0a7..50ce2d2c 100644 --- a/plexpy/webauth.py +++ b/plexpy/webauth.py @@ -387,7 +387,7 @@ class AuthController(object): 'exp': expiry } - jwt_token = jwt.encode(payload, plexpy.CONFIG.JWT_SECRET, algorithm=JWT_ALGORITHM).decode('utf-8') + jwt_token = jwt.encode(payload, plexpy.CONFIG.JWT_SECRET, algorithm=JWT_ALGORITHM) self.on_login(username=user_details['username'], user_id=user_details['user_id'],