Update main.py
Browse files
main.py
CHANGED
@@ -59,7 +59,8 @@ async def login_post(
|
|
59 |
)
|
60 |
|
61 |
response = RedirectResponse(url="/protected", status_code=status.HTTP_303_SEE_OTHER)
|
62 |
-
response.set_cookie(key="access_token", value=f"Bearer {access_token}", httponly=True)
|
|
|
63 |
return response
|
64 |
elif user and not user.is_verified: # User is not verified
|
65 |
raise HTTPException(
|
|
|
59 |
)
|
60 |
|
61 |
response = RedirectResponse(url="/protected", status_code=status.HTTP_303_SEE_OTHER)
|
62 |
+
#response.set_cookie(key="access_token", value=f"Bearer {access_token}", httponly=True)
|
63 |
+
response.set_cookie(key="access_token", value=access_token, httponly=True)
|
64 |
return response
|
65 |
elif user and not user.is_verified: # User is not verified
|
66 |
raise HTTPException(
|