diff --git a/bindings/wasm/src/did/wasm_core_document.rs b/bindings/wasm/src/did/wasm_core_document.rs index 8f3234fdd9..0d75b7abc8 100644 --- a/bindings/wasm/src/did/wasm_core_document.rs +++ b/bindings/wasm/src/did/wasm_core_document.rs @@ -673,6 +673,8 @@ impl WasmCoreDocument { /// Unless the `kid` is explicitly set in the options, the `kid` in the protected header is the `id` /// of the method identified by `fragment` and the JWS signature will be produced by the corresponding /// private key backed by the `storage` in accordance with the passed `options`. + /// + /// The `custom_claims` can be used to set additional claims on the resulting JWT. #[wasm_bindgen(js_name = createCredentialJwt)] pub fn create_credential_jwt( &self, diff --git a/bindings/wasm/src/iota/iota_document.rs b/bindings/wasm/src/iota/iota_document.rs index b482091b48..e165769d7a 100644 --- a/bindings/wasm/src/iota/iota_document.rs +++ b/bindings/wasm/src/iota/iota_document.rs @@ -716,8 +716,11 @@ impl WasmIotaDocument { /// Produces a JWS where the payload is produced from the given `credential` /// in accordance with [VC Data Model v1.1](https://www.w3.org/TR/vc-data-model/#json-web-token). /// - /// The `kid` in the protected header is the `id` of the method identified by `fragment` and the JWS signature will be - /// produced by the corresponding private key backed by the `storage` in accordance with the passed `options`. + /// Unless the `kid` is explicitly set in the options, the `kid` in the protected header is the `id` + /// of the method identified by `fragment` and the JWS signature will be produced by the corresponding + /// private key backed by the `storage` in accordance with the passed `options`. + /// + /// The `custom_claims` can be used to set additional claims on the resulting JWT. #[wasm_bindgen(js_name = createCredentialJwt)] pub fn create_credential_jwt( &self, @@ -750,8 +753,9 @@ impl WasmIotaDocument { /// Produces a JWT where the payload is produced from the given presentation. /// in accordance with [VC Data Model v1.1](https://www.w3.org/TR/vc-data-model/#json-web-token). /// - /// The `kid` in the protected header is the `id` of the method identified by `fragment` and the JWS signature will be - /// produced by the corresponding private key backed by the `storage` in accordance with the passed `options`. + /// Unless the `kid` is explicitly set in the options, the `kid` in the protected header is the `id` + /// of the method identified by `fragment` and the JWS signature will be produced by the corresponding + /// private key backed by the `storage` in accordance with the passed `options`. #[wasm_bindgen(js_name = createPresentationJwt)] pub fn create_presentation_jwt( &self,