toJwt

suspend fun toJwt(credential: VerifiableCredential): String

Convert credential to an unsecured JWT (alg: none) with the credential in the vc claim. For signed JWTs, use CredentialService.issue().

Throws

if the credential cannot be encoded; there is no fallback to another representation.