What is the best way to handle user authentication with ember?


I have a boiler with Express and Passport on the server and Ember on the client:

Currently, I’m handling auth server side and then strapping the logged in user to my server index template, from there ember picks it up from the global namespace.

It seems like this is not the proper way to do this with ember and is limiting me in a variety of ways. I also suspect it’s not that secure. What is a good solution that is also a proven secure way for single page ember apps?


Were you ever able to solve this?


Yes, I’ve now integrated ember-simple-auth into my project, check this out:

the last several commits are all about auth


Does that plugin do json web tokens?


that’s its out of the box functionality