How do i get the username and other details of the logged in user. Now I am getting only the below by using "req.user"
{
email: 'xxxr@xyx.com',
createdAt: '2015-08-12T10:47:25.404Z',
updatedAt: '2015-08-12T10:47:25.405Z',
id: '55cb243d8bbd86d5237c2f7f'
}
How do i get the username and other details of the logged in user. Now I am getting only the below by using "req.user" { email: 'xxxr@xyx.com', createdAt: '2015-08-12T10:47:25.404Z', updatedAt: '2015-08-12T10:47:25.405Z', id: '55cb243d8bbd86d5237c2f7f' }