sign

fun sign(did: BearerDid, payload: JwtClaimsSet): String

Sign a JwtClaimsSet using a Bearer DID.

Return

The signed JWT

Parameters

did

The Bearer DID to sign with

payload

The JwtClaimsSet payload to sign