Register a listener function that will be call when authentication tokens are
updated or removed.
Example
constlistener = async () => { // Check if the user is logged in still constisLoggedIn = authService.isLoggedIn() } constderegister = awaitauthService.registerAuthListener(listener)
// When no longer needed, remember to deregister the listener deregister()
Register a listener function that will be call when authentication tokens are updated or removed.
Example