fromJwt
Convert a JWS-secured JWT to a credential (signature not verified). Unsecured (alg: none) JWTs are rejected; see the overload with allowUnsecured.
See also
Extension function
Throws
if the input is not a secured JWT with a valid vc claim.
Convert a JWT to a credential, accepting unsecured (alg: none) JWTs only when allowUnsecured is true — e.g. to read back the output of toJwt.