iya-sts
    Preparing search index...
    save: (name: unknown, given?: Record<string, any>) => PolicyResult = ...

    Type Declaration

      • (name: unknown, given?: Record<string, any>): PolicyResult
      • Replaces a profile's entry with the values given: default, or a named policy, which its first save creates.

        Parameters

        • name: unknown

          the profile: default or a name of lower-case letters, digits and hyphens (STS-AUTHN-0107)

        • Optionalgiven: Record<string, any>

          every field, optionally description, and for a named policy precedence (1 to 1000, 100 when left out)

        Returns PolicyResult

        { ok, profile }, or { ok: false, errors } marked with its error code