Create an M2M application
Machine-to-Machine (M2M)
You can include feature flags in the tokens issued to machine-to-machine (M2M) applications in Kinde. This is helpful for enabling or disabling functionality in downstream systems based on feature access.
Note: At this time, only environment-level feature flags can be included in M2M tokens. Support for organization-assigned flag values may be added in future releases.
Before including a flag in a token, you need to define it in your environment.
Once defined, this flag will be available for inclusion in any M2M token issued in the same environment.
These flags will be embedded in the token under the feature_flags
claim:
{ "feature_flags": { "new-ai-agent": { "t": "b", "v": true }, "access-level": { "t": "s", "v": "beta" } }}
The t
and v
are short codes for the type and value of the feature flag.
t
= type
(boolean, string, number)v
= value
(true | false, “beta”, 1, etc.)Only the feature flags you explicitly toggle on will be included.