Skip to content

Commit

Permalink
docs: update chatbot demo
Browse files Browse the repository at this point in the history
  • Loading branch information
lotharking committed Dec 16, 2024
1 parent 32b3661 commit 26ce01b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion examples/chatbot/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 26ce01b

Please sign in to comment.