Fix jwt encoding

This commit is contained in:
JonnyWong16 2021-10-15 00:39:36 -07:00
parent 6d0fcf0970
commit d2e84886f6
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

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