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

bind functions to relevant object when wrapping #1

Open
Juul opened this issue Nov 18, 2016 · 0 comments
Open

bind functions to relevant object when wrapping #1

Juul opened this issue Nov 18, 2016 · 0 comments

Comments

@Juul
Copy link
Member

Juul commented Nov 18, 2016

Probably rpc-multistream should bind the rpc functions to some object such that this refers to an object with relevant info from within the rpc functions.

rpc-multiauth should then add a .auth or .user to that object so rpc functions can access the current user using e.g. this.user.

Until then we have to enable opts.userDataAsFirstArgument.

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

No branches or pull requests

1 participant