From dface2124d35d6f9557ce48d328662069ae9ac56 Mon Sep 17 00:00:00 2001 From: Niraj Adhikari Date: Mon, 29 Jan 2024 14:00:11 +0545 Subject: [PATCH] fix: login_required decorator return value converted to AuthUser --- src/backend/app/auth/osm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/app/auth/osm.py b/src/backend/app/auth/osm.py index d64ebf561b..5435437683 100644 --- a/src/backend/app/auth/osm.py +++ b/src/backend/app/auth/osm.py @@ -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)