getByToken switch