Direct string comparison in multiple places is prone to typos. It also means that a consumer of the class needs to know that whether a user is pending or active is held in the `state` property, which is an implementation detail.
auth_type