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. :)
Written by Yoza Wiratama
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Javascript
Authors
Did you know?
JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.
Security insights from Cside
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#