diff --git a/backend/app/api/v1/__pycache__/routes_auth.cpython-313.pyc b/backend/app/api/v1/__pycache__/routes_auth.cpython-313.pyc index 7590166..4eb388e 100644 Binary files a/backend/app/api/v1/__pycache__/routes_auth.cpython-313.pyc and b/backend/app/api/v1/__pycache__/routes_auth.cpython-313.pyc differ diff --git a/backend/app/api/v1/routes_auth.py b/backend/app/api/v1/routes_auth.py index ce02087..5e5c10b 100644 --- a/backend/app/api/v1/routes_auth.py +++ b/backend/app/api/v1/routes_auth.py @@ -150,7 +150,7 @@ async def refresh_token( return RefreshResponse( access_token=new_access_token, user_id=user_id, - role=user.role.value + role=user.role if isinstance(user.role, str) else user.role.value ) except Exception as e: