JavaScript

Create the Users

Each participant in a Conversation is represented by a User object and must be authenticated by the Client SDK. In a production application, you would typically store this user information in a database.

Execute the following commands to create two users, Alice and Bob who will log in to the Vonage Client and participate in the Conversation.

vonage users create `
  --name='Alice'
  
✅ Creating User

User ID: USR-00000000-0000-0000-0000-000000000000
Name: Alice
Display Name: Not Set
Image URL: Not Set
Time to Live: Not Set

Channels:
  None Set
vonage users create `
  --name='Bob'
  
✅ Creating User

User ID: USR-00000000-0000-0000-0000-000000000000
Name: Bob
Display Name: Not Set
Image URL: Not Set
Time to Live: Not Set

Channels:
  None Set