dimanche 1 février 2015

ember-simple-auth custom authenticator loses partial data on refresh

I have a custom authenticator which inherits from the torii authenticator:


http://ift.tt/1BNfnOs


It works in so far as I can log in and I can see the session data in local storage:


{"authenticator":"authenticator:custom","userId":"698671479","accessToken":"********","provider":"facebook-connect","user_id":"1111","user":{"slug":null,"name":null,"username":null,"profilePictureUrl":"http://ift.tt/1D11cak","auth":"1111","eventsAttending":[]}}


However, upon refreshing most of the data has gone and I am left with:


{"authenticator":"authenticator:custom","provider":"facebook-connect"}


What part am i missing so that all of my session data is re-hydrated?





Aucun commentaire:

Enregistrer un commentaire