From 8bdfaee57ddc6a5127574fba0e4fe17c6dd8a309 Mon Sep 17 00:00:00 2001 From: michael Date: Wed, 8 Oct 2025 22:59:01 -0500 Subject: [PATCH] hopefully fixed refresh token issue --- .../__pycache__/routes_auth.cpython-313.pyc | Bin 7330 -> 7480 bytes backend/app/api/v1/routes_auth.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) 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 759016619f996c6e1502c19bd9d649ea4b409152..4eb388e5fce8ba86edb890f8d8d3a819b6987c08 100644 GIT binary patch delta 393 zcmZ2vxxm^r8ZgIXYXK_)^VuHwY$%&F5 z*;xd*J}|Iwa(!T9uyn{X=&8+e z#KuJo$T=y*2$VS~EDmC8f!W%OAhsTtw<_~V3r7ua1?JNVtU%6bRc3FE%||4n85xr| YD@f%4smZ<4vWx|jS4)3p$p=~k0Gz&FAOHXW delta 318 zcmdmCwaAk9GcPX}0}${UJE6ShjDD#;m4=4x#c^pNq 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: