Last Updated: February 25, 2016
·
406
· yozawiratama

Meteor accounts : code for beginner

What i want to share here is something that simple about Meteor accounts.<br />
install :<br />
use this command on your terminal

meteor add accounts-base

or

mrt add accounts-base

You can run this code on js file or you browser's console.<br />
Get active/logged in user id :

Meteor.userId()

Get active/logged in user :

Meteor.user()

Get active/logged in username :

Meteor.user().username

I wish this can help you. :)