Setu-TS
    Preparing search index...

    Type Alias ClaimsGrantMapper

    ClaimsGrantMapper: (
        claims: Readonly<Record<string, unknown>>,
        principal: IPrincipal,
    ) => readonly ScopedGrant[]

    Maps a principal's claims to grants ({ kind: 'claims' }) — the shape of an identity provider that puts organisation memberships in the token, with no store behind it.

    Type Declaration

      • (
            claims: Readonly<Record<string, unknown>>,
            principal: IPrincipal,
        ): readonly ScopedGrant[]
      • Parameters

        • claims: Readonly<Record<string, unknown>>
        • principal: IPrincipal

        Returns readonly ScopedGrant[]

    0.9.0