Get the current authentication data to persist it
ProtectedemitDispatch an event to all listeners
Remove an event listener
Add an event listener, returns a function that can be called to remove the listener
Add an event listener that will be called only once
Remove all event listeners, optionally for a specific event
Optionalevent: T
For cookie authentication, there is no way to detect if the user is authenticated or not, except when a call to API was successful. So the REST client will set this property to true.