Skip to content

Commit

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

0 comments on commit 9912183

Please sign in to comment.