off

client.off(eventName: Event, callback: function)

About this command

Removes a previously registered listener for a particular ReachFive event.

Examples

function onAuthenticated(authResult) {
  const accessToken = authResult.accessToken
  // ...
}

client.on('authenticated', onAuthenticated)

// Then later
client.off('authenticated', onAuthenticated)

Parameters

eventName Event

One of the following events:

  • authenticated: emitted after a successful authentication.

  • authentication_failed: emitted after a failed authentication with a social provider.

  • login_failed: emitted after a failed password or Webauthn login.

  • signup_failed: emitted after a failed signup.

  • profile_updated: emitted after a successful profile update.

  • ready: emitted when the SDK is fully loaded. If the SDK is already loaded, the handler is called synchronously.

callback function

The function called when the event was registered.

Response

Type: void