Unknown User - js

Hi everyone, I started using Sentry and it is great, but I can not get the user context works, this how Im implementing it:

Raven.setUserContext({
id: user.id});
Raven.setUserContext({
username: user.username
});

and also tried

Raven.setUserContext({
id: user.id,
username: user.username
});

Am I missing something? Both values exist and I can see them on sentry as tag values by doing this:

Raven.setTagsContext({ userName: user.username });
Raven.setTagsContext({ userID: user.id });

I only get Unknown User

any help will be great.

thanks

Not sure if this helps, but in react-native I think I had to set all 3 user attributes (email, id and username) in a single call to setUserContext() to get it to work.

Thanks laurentS,
but no luck, I also tried, copy/paste from sentry documentation but nothing:

Raven.setUserContext({
email: ‘matt@example.com’,
id: ‘123’
})

and

Raven.setUserContext({
email: ‘matt@example.com’,
id: ‘123’,
username: ‘test’
})