added samesite option for cookie authentication (#337)

* added samesite option for cookie authentication

* formatted with black and added documentation (grabbed from starlette.io documentation)
This commit is contained in:
SelfhostedPro
2020-09-29 22:27:25 -07:00
committed by GitHub
parent c5f53b73d1
commit 8adce74cd9
20 changed files with 112 additions and 32 deletions

View File

@ -56,7 +56,8 @@ def event_loop():
@pytest.fixture
def user() -> UserDB:
return UserDB(
email="king.arthur@camelot.bt", hashed_password=guinevere_password_hash,
email="king.arthur@camelot.bt",
hashed_password=guinevere_password_hash,
)