I am having a bit of an issue with a small ember app which uses GitHub/Facebook authentication implemented with ember-simple-auth (with torii) within ember-cli.
Login works nice, I seam to be authenticated but I would like to know who is logged in. In this end, I switched to cookie store, hoping that when I send a store request to the server, I would have some data about the authenticated user, but I don’t.
So, my first question is how do I retrieve the authenticated user? Then, how do I make the torii-adapter use ember-data?
I’d be happy to post any needed code here, just don’t know what to post. Let me know what code is needed to answer the question and I’ll post it.
Thanks in advance!
Aucun commentaire:
Enregistrer un commentaire