Migration to 'getByToken', part II.

Migration of the PAT to 'consumes'/'getByToken'-API.