Merge pull request #1700 from selfhoster1312/decode-jwt

Serialize the JWT token to a cookie string instead of failing
This commit is contained in:
Alexandre Aubin 2023-08-15 12:27:16 +02:00 committed by GitHub
commit 741caebdda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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