Skip to content

Commit

Permalink
Merge pull request #1144 from hotosm/hotfix
Browse files Browse the repository at this point in the history
fix: login_required decorator return value converted to AuthUser
  • Loading branch information
Sujanadh authored Jan 29, 2024
2 parents 19335bf + dface21 commit f1f33f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/app/auth/osm.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@ async def login_required(
log.error("Failed to deserialise access token")
raise HTTPException(status_code=401, detail="Access token not valid") from e

return osm_user
return AuthUser(**osm_user)

0 comments on commit f1f33f3

Please sign in to comment.