Users and Rollouts

To facilitate rollouts, and consistently serve the same value for a flag during a session, we need a way of identifying the user, which needs to be supplied by the application

Toggly.init({
  appKey: '<YOUR_APP_KEY>',
  environment: '<YOUR_APP_ENVIRONMENT>',
  featureFlagsRefreshInterval: 3 * 60 * 1000,
  userIdentifier: '<UNIQUE_USER_IDENTIFIER>'
})
.then(function () {
  // Now you can check if a feature (or more) is Enabled/Disabled ...
});

Last updated

Was this helpful?