Returns the current authentication state.
Objects returned by this method should not be mutated.
Emit the changed event instead to communicate that there is a new state.
Returns the login behavior that should be performed if the user is not authenticated.
Explicitly triggers a logout.
Should result in a new state (including a changed event) if the user
was authenticated.
Optionaloptions: unknownCustom options that may be supported by the plugin.
The optional pluginOptions in AuthService.logout will be passed to this parameter.
This parameter is not typed at this point (but should be in the plugin's actual implementation).
The authentication service requires an AuthPlugin to implement a concrete authentication flow.
The plugin provides the current authentication state and the authentication fallback to the service.
The current authentication state returned by getAuthState may change. If that is the case, the plugin must implement its auth state with Reactivity API.