getByToken switch completed