Gregivy / simpleddp

An easy to use DDP client library
MIT License
165 stars 19 forks source link

This.userId server side #12

Closed nesbtesh closed 5 years ago

nesbtesh commented 5 years ago

How do you send the token to the server, so that you can access this.userId in the server

Gregivy commented 5 years ago

You don't need to send token to the server, its the opposite, the server sends a token to the client and associate a current DDP connection with the token. You can use https://github.com/Gregivy/simpleddp-plugin-login for Meteor.Accounts logic.