From 26ce01ba79f423473707e9d1a5059fa70098bb16 Mon Sep 17 00:00:00 2001 From: Andres Vallecilla Date: Mon, 16 Dec 2024 15:06:01 -0500 Subject: [PATCH] docs: update chatbot demo --- examples/chatbot/index.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/examples/chatbot/index.ts b/examples/chatbot/index.ts index 852fa26..5f02b50 100644 --- a/examples/chatbot/index.ts +++ b/examples/chatbot/index.ts @@ -86,7 +86,16 @@ const server = app.listen(PORT, async () => { ) try { - const credentialDefinition = (await apiClient.credentialTypes.import(phoneCredDefData)) + /** + * Note: To test credential revocation locally, use the following configuration: + * const credentialDefinition = (await apiClient.credentialTypes.create({ + * id: randomUUID(), + * name: "phoneNumber", + * version: '1.0', + * attributes: ['phoneNumber'] + * })) + */ + const credentialDefinition = (await apiClient.credentialTypes.import(phoneCredDefData)) phoneNumberCredentialDefinitionId = phoneNumberCredentialType?.id ?? credentialDefinition.id phoneNumberRevocationDefinitionId =