JavaScript

Crear un usuario

Usuarios son un concepto clave a la hora de trabajar con los Vonage Client SDK. Cuando un usuario se autentica con el Vonage Client SDK, las credenciales facilitadas lo identifican como un usuario concreto. Por lo general, cada usuario autenticado se corresponderá con un único usuario de tu base de datos de usuarios.

Para crear un usuario llamado Alice, ejecuta el siguiente comando mediante la CLI de Vonage:

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='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='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