Function signProfileToken

  • Signs a profile token

    Parameters

    • profile: any

      the JSON of the profile to be signed

    • privateKey: string

      the signing private key

    • Optional subject: any

      the entity that the information is about

    • Optional issuer: any

      the entity that is issuing the token

    • signingAlgorithm: string = 'ES256K'

      the signing algorithm to use

    • issuedAt: Date = ...

      the time of issuance of the token

    • expiresAt: Date = ...

      the time of expiration of the token

    Returns string

    • the signed profile token

Generated using TypeDoc