69
rated 0 times
[
73]
[
4]
/ answers: 1 / hits: 15769
/ 12 Years ago, sat, december 22, 2012, 12:00:00
I am building an app using Meteor and need to access the stored email address of a logged-in user.
I am currently using:
var userObj = Meteor.user();
console.log(userObj);
to access the user. However, I am only able to access the id. The email address is stored in a nested object that looks like this:
[Object {[email protected], verified=false}]
I have tried various ways to traverse the JSON object but can't figure out how to access the value I need.
More From » json