authenticationStateObserver
abstract fun authenticationStateObserver(callback: (authenticationState: ConsumerAuthenticationState) -> Unit): JsCleanup
Registers a callback that is invoked whenever the authentication state changes. Returns a JsCleanup that stops the observer when JsCleanup.stop is called.