Authentication User Flow
Learn how to implement authentication and authorization in MeteorJS.
We'll cover the following...
Log in user
Meteor logs a user in to the system by checking the combination of the username
or email
of the user with the password
. When a successful login occurs, Meteor stores the login token, token expiration date, and userId
in the localStorage
browser with the respective Meteor.loginToken
, Meteor.loginTokenExpires
, and Meteor.userId
keys. The storage of these values ensures that a user is always logged in to the system as they navigate the application.
The imports/ui/Login.jsx
file uses the AuthContext
...