Keep Users Logged in?

I want to keep users logged into my app. I am using Parse’s JS SDK to handle users. I know localstoring user’s passwords in a localstore file probably isn’t the safest thing to do so how should I go about doing this?

You can use the JSON Web Token (JWT) way… here’s a good tutorial…

Under parse, would the Parse.User.Current() be the token?

If I remember correctly that returns the current user object…

https://parse.com/docs/js_guide#users-current