Skip to content
masterclass Buddy

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.

Subscribe
  • useKindeAuth
  • feature_flags
  • getClaim
  • getClaims

Source: React SDK - Kinde docs. Checked 2026-11-03.