stretchr / sdk-js

HTML5 and JavaScript SDK for Stretchr
http://docs.stretchr.com/sdks/javascript.md
3 stars 0 forks source link

change doLogin to store user reference only #13

Closed mazondo closed 10 years ago

mazondo commented 10 years ago

I think that we should push the responsibility of loading the user data into doLogin() or somewhere similar. The reason is two-fold:

Thoughts?

mazondo commented 10 years ago

Looking at this again, I think maybe we have doLogin() store the user reference in a cookie only, and then add to the client init code that will check for a user reference and create a currentUser or userData object.

this will work well for the current implementation, but I'll need to keep it in mind for the login window implementation later.

mazondo commented 10 years ago

done.