Skip to content

Commit

Permalink
fix: fix set_cookie call
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Mar 27, 2024
1 parent 2969abe commit 00d311f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routers/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def authentication(
# Don't add httponly=True or secure=True as it's still in
# development phase, but it should be added once the front-end
# is ready
final_response.set_cookie({"opsession": token})
final_response.set_cookie("opsession", token)
return final_response
elif response.status_code == 403:
time.sleep(2) # prevents brute-force
Expand Down

0 comments on commit 00d311f

Please sign in to comment.