Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automagically load user data if a user ref is present #15

Open
mazondo opened this issue Sep 27, 2013 · 2 comments
Open

automagically load user data if a user ref is present #15

mazondo opened this issue Sep 27, 2013 · 2 comments

Comments

@mazondo
Copy link
Contributor

mazondo commented Sep 27, 2013

Need to give the user access to a userData or currentUser object that gives them all of the user's data. Should use the stretchr resource class so that it can be interacted with.

@matryer
Copy link
Member

matryer commented Sep 27, 2013

Perhaps we could have this kind of interface:

stretchr.getUser({
  success: function(user, response){
    // do something with user
  }
})

@mazondo
Copy link
Contributor Author

mazondo commented Sep 27, 2013

Would this just be the normal thing? and if it's already loaded it fires success immediately?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants