About This Architecture
TokenInvitado state machine defines three validity states: Activo, Expirado, and Desactivado, derived from expira_en and activo attributes without additional database columns. The diagram shows transitions from Activo to either Expirado (time-based expiration) or Desactivado (manual revocation), both terminating at end state. This pattern simplifies token validation logic by consolidating expiration and revocation into a single state model. Fork this diagram to customize state transitions, add intermediate states, or adapt the model for other token types. Understanding token state machines prevents security gaps in authentication flows and reduces endpoint validation complexity.