@startuml frontend-authentication-states

title Frontend authentication states
footer %date("yyyy-MM-dd HH:mm")

[*] --> Unauthenticated : Token not found
[*] --> Authenticated : Token found

Authenticated: User can navigate the site
Unauthenticated: Login form is displayed to the user

Unauthenticated --> Authenticated : Authentication request succeeds
Authenticated -> Unauthenticated : An HTTP request returns unauthorized

@enduml
