extract setUser from login/register + intercom