toJwt
Convert credential to JWT format.
Creates an unsigned JWT with the credential in the 'vc' claim. For signed JWTs, use CredentialService.issue() with JWT format.
Example:
val jwt = credential.toJwt()
println("JWT: $jwt")Content copied to clipboard
Return
JWT string (unsigned)