mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: login security issue
This commit is contained in:
parent
cd05ae5ca8
commit
1bab95b15a
1 changed files with 1 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ async def login(
|
|||
Authorize.set_refresh_cookies(refresh_token)
|
||||
# set cookies using fastapi
|
||||
response.set_cookie(key="access_token_cookie", value=access_token , httponly=False)
|
||||
user = PublicUser(**user.dict())
|
||||
|
||||
result = {
|
||||
"user": user,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue