enum AuthState { idle, checking, ready, empty, error, }