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
Restore authentication from the data that was previously backed up