off

Deprecation Notice

This SDK is deprecated in favor of the Core and UI JS SDKs. See Migrating to the latest SDKs to use the latest Core and UI SDKs.

Support for the Legacy JS SDK ends on 28 February, 2021.

reach5.off('off', {
  eventName: Event,
  callback: function,
})

About this command

Removes a previously registered listener for a particular ReachFive event.

Examples

function onAuthenticated(authResult) {
  var accessToken = authResult.accessToken;
  // ...
}

reach5('on', 'authenticated', onAuthenticated);

// Then later
reach5('off', 'authenticated', onAuthenticated);

Parameters

eventName string

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 string

Event callback that was used with on.