Skip to content

Commit

Permalink
fix(auth): update login dependency to use mapper_login_required for u…
Browse files Browse the repository at this point in the history
…ser data retrieval
  • Loading branch information
Anuj-Gupta4 committed Dec 10, 2024
1 parent 9eb6c60 commit 48080f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/app/auth/auth_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 48080f3

Please sign in to comment.