iya-sts
    Preparing search index...

    Variable signJwtAs

    signJwtAs: (payload: any, alg: any, secret: any, opts: any) => any = signJwtAs

    Type Declaration

      • (payload: any, alg: any, secret: any, opts: any): any
      • Signs a JWT with whichever key the algorithm needs.

        Parameters

        • payload: any

          the claims

        • alg: any

          the JWS algorithm

        • secret: any

          the client secret, required for HS* and ignored otherwise

        • opts: any

          header, merged into the protected header, and certificateHeader, the use case whose setting decides x5c or x5u

        Returns any

        the compact JWS

        Error for HS* without a secret, or an algorithm this realm holds no key for