Move token handling on auth error to the sync manager