Skip to content

Commit 2acc74d

Browse files
fix: remove redundant route
1 parent aa7c339 commit 2acc74d

File tree

3 files changed

+2
-108
lines changed

3 files changed

+2
-108
lines changed

backend/src/dependencies/auth0.py

Lines changed: 0 additions & 106 deletions
This file was deleted.

backend/src/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ def custom_generate_unique_id(route: APIRoute) -> str:
3333
app.add_middleware(
3434
SessionMiddleware,
3535
secret_key=settings.SECRET_KEY,
36-
max_age=settings.SESSION_MAX_AGE,
36+
same_site="lax", # adjust for production
37+
https_only=False
3738
)
3839

3940
app.include_router(api_router, prefix=settings.API_V1_STR)

backend/src/routers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
api_router = APIRouter()
1010

1111
api_router.include_router(auth_router, tags=["login"])
12-
api_router.include_router(auth0_router)
1312
api_router.include_router(user_router, prefix="/users", tags=["users"])
1413
api_router.include_router(flashcards_router, tags=["flashcards"])
1514
api_router.include_router(stats_router, tags=["stats"])

0 commit comments

Comments
 (0)