Feature opt-in

You can now let users opt into beta or experimental features directly from your product.
Opt-in is useful when a feature isn't ready for everyone, but you want adventurous users to try it early. It also works well for redesigned experiences where users should be able to move between the old and new versions while you collect feedback.
You build the experience that fits your product, such as a Labs page or an Experiments section in your settings. Reflag handles the opt-in membership and evaluates access alongside your existing targeting rules.
To get started, enable End-user opt-in under a flag's Settings → Opt-in and add an optional public description.

Your client-side SDK can then list the available experiments and let the current user opt in:
const { flags } = useOptInFlags();
const setOptIn = useSetOptIn();
await setOptIn("new-checkout");You can also opt in an entire company by passing scope: "company" to setOptIn. User and company opt-ins are independent, and opted-in users and companies are visible in Reflag alongside your regular access rules.
We're already using the new functionality ourselves. Organization admins can now go to Settings → Experiments in Reflag to try upcoming features for their entire organization.
See the end-user opt-in documentation for a complete React implementation.
Happy shipping!