Serialize the JWT token to a cookie string instead of failing

This commit is contained in:
selfhoster1312 2023-08-15 12:23:56 +02:00
parent 6f8b3fd57f
commit 101b5704c4

View file

@ -132,7 +132,7 @@ class Authenticator(BaseAuthenticator):
response.set_cookie(
"yunohost.portal",
jwt.encode(new_infos, session_secret, algorithm="HS256"),
jwt.encode(new_infos, session_secret, algorithm="HS256").decode(),
secure=True,
httponly=True,
path="/",