diff --git a/examples/chatbot/index.ts b/examples/chatbot/index.ts index 703dc26..a253a58 100644 --- a/examples/chatbot/index.ts +++ b/examples/chatbot/index.ts @@ -86,6 +86,13 @@ const server = app.listen(PORT, async () => { ) try { + 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 =