Links

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 ...
});
When using user identifiers, evaluated features are cached per user for 30 minutes by default on a sliding window, so the user might not see the change right away as to not confuse the user. The session length is configurable and the session store can be cleared in App Settings