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

app.use(toggly, {
  appKey: "<YOUR_APP_KEY>", // You can find this in
  environment: "<YOUR_APP_ENVIRONMENT>", // You can find this in
  identity: "<UNIQUE_USER_IDENTIFIER>", // Use this in case you want to support custom feature rollouts

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

Last updated