iya-sts
    Preparing search index...

    Variable signJws

    signJws: (payload: any, key: any, opts: any) => any = signJws

    Type Declaration

      • (payload: any, key: any, opts: any): any
      • Signs a JWT payload as a compact JWS: the one place this service signs a JWT.

        Parameters

        • payload: any

          the claims

        • key: any

          the signing key

        • opts: any

          algorithm (RS256 by default), header, keyid and the claim conveniences jsonwebtoken takes

        Returns any

        the compact JWS

        Error when no key is given or the algorithm is not supported