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'],