Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
zopyx committed Jul 8, 2024
1 parent 7198c37 commit 419c626
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fastapi_auth/auth_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from .jinja2_templates import templates

from starlette.middleware.sessions import SessionMiddleware
from securecookies import SecureCookiesMiddleware


from .auth_config import AUTH_SETTINGS
Expand All @@ -27,8 +26,7 @@

def install_middleware(app):
app.add_middleware(SessionMiddleware, secret_key=AUTH_SETTINGS.secret_key.get_secret_value())
# app.add_middleware(SecureCookiesMiddleware, secrets=[AUTH_SETTINGS.secret_key.get_secret_value()])
app.add_middleware(SecureCookiesMiddleware, secrets=[b'ZmDfcTF7_60GrrY167zsiPd67pEvs0aGOv2oasOM1Pg='])


@router.get("/login", response_class=HTMLResponse)
async def login(
Expand Down

0 comments on commit 419c626

Please sign in to comment.