From 48080f3df6a633728905bd592ff59ddae38e9081 Mon Sep 17 00:00:00 2001 From: Anuj-Gupta4 Date: Tue, 10 Dec 2024 10:16:39 +0545 Subject: [PATCH] fix(auth): update login dependency to use mapper_login_required for user data retrieval --- src/backend/app/auth/auth_routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/app/auth/auth_routes.py b/src/backend/app/auth/auth_routes.py index 2bfc809dc..75e5ca085 100644 --- a/src/backend/app/auth/auth_routes.py +++ b/src/backend/app/auth/auth_routes.py @@ -249,7 +249,7 @@ async def get_or_create_user( @router.get("/me", response_model=FMTMUser) async def my_data( db: Annotated[Connection, Depends(db_conn)], - current_user: Annotated[AuthUser, Depends(login_required)], + current_user: Annotated[AuthUser, Depends(mapper_login_required)], ): """Read access token and get user details from OSM.