Refresh token fix for ORM usage