Kinde · Module
getFlag
getFlag reads a feature flag from the access token in a React app. It can use a fallback value and an optional type.
Last updated
Syntax
getFlag(code: string, options?: { defaultValue?: string | boolean | number; type?: "string" | "boolean" | "number" })In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
useKindeAuthfeature_flagsgetClaimgetClaims