mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #1700 from selfhoster1312/decode-jwt
Serialize the JWT token to a cookie string instead of failing
This commit is contained in:
commit
741caebdda
1 changed files with 1 additions and 1 deletions
|
@ -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="/",
|
||||
|
|
Loading…
Add table
Reference in a new issue