Hello,
I believe that the "Register a User" example under the UserManager is incorrectly defining the payload properties.
The property for tokens has been changed to user_tokens
Eg.
OLD
let payload = {
firstName : 'John',
lastName : 'Smith',
birthday : '1970-12-23',
language : 'en',
password : '',
tokens : [
{
token : '+44 123 9876',
token_type : 'phone_number',
isPrimary : true
},
{
token : 'example@example.com',
token_type : 'email',
isPrimary : false
}
],
namePublic : true,
avatarPublic : true
}
NEW
let payload = {
firstName : 'John',
lastName : 'Smith',
birthday : '1970-12-23',
language : 'en',
password : '',
user_tokens : [
{
token : '+44 123 9876',
token_type : 'phone_number',
isPrimary : true
},
{
token : 'example@example.com',
token_type : 'email',
isPrimary : false
}
],
namePublic : true,
avatarPublic : true
}
Could you please update the README for new users interacting with the SDK?