You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When retrieving user details multiple times request fails.
It seems as the model object is return wrong values. user: { username: 'waychan23' }
After second call the object becomes user: { username: { username: 'waychan23' } }
etc...
This can be solved by removing these lines from model.js: token.client = { id: token.client }; token.user = { username: token.user };
Inside the api-router.js line 43 should look like this: detail = userDb.get(user);
The text was updated successfully, but these errors were encountered:
The correct way to fix it is to create a new token object instead of modifying it. The reason is, accessTokenStore.get() returns a reference to the token object.
When retrieving user details multiple times request fails.
It seems as the model object is return wrong values.
user: { username: 'waychan23' }
After second call the object becomes
user: { username: { username: 'waychan23' } }
etc...
This can be solved by removing these lines from model.js:
token.client = { id: token.client };
token.user = { username: token.user };
Inside the api-router.js line 43 should look like this:
detail = userDb.get(user);
The text was updated successfully, but these errors were encountered: