ClientClaims type

Claims as the client SDK's Auth.getClaims() returns them.

Tokens carry every app-defined claim as a string, and the client does not have the claims contract to convert them, so each custom claim is typed as string here: a provider's false arrives as 'false' and 42 as '42'. Server-side policies and a function's ctx.getClaims() see the declared types.

type ClientClaims = RayfinBaseClaims & {
  [K in keyof RayfinCustomClaims]: string
}