entitlements property

List<String> get entitlements

Returns a flat list of entitlements from claims under the key 'entitlement', cast to List<String>.

Implementation

List<String> get entitlements {
  final raw = claims['entitlement'];
  if (raw is List) return raw.cast<String>();
  return const [];
}