iya-sts
    Preparing search index...
    mint: (format: string, model: any, ctx?: any) => Promise<any> = ...

    Type Declaration

      • (format: string, model: any, ctx?: any): Promise<any>
      • Mints an access token in the named format from a token model.

        Parameters

        • format: string

          one of FORMATS

        • model: any

          the token model, validated first

        • Optionalctx: any

          the mint's context (keys, audience, base)

        Returns Promise<any>

        { value, format, jti }

        Error when the model is invalid, the format is unknown or its library refuses to mint