Ok, I am curious now.
You have clients as valid users of a Meteor project. Each client has a username and a valid password.
However, from the client (be it browser, React-Native, or Cordova or some other native thing) you want to REST call into your Meteor and return some results but not via the Meteor client.
I am trying to understand where you are calling from. Or are you trying to impersonate users?!
I make REST calls from external servers. I am probably doing it wrong, but I found no existing rest packages (simple-rest, restivus) that works with current versions of Meteor.
I just have server (iron) routes like
I “log them” in with a bearer token by simply finding a user through that token and get this.userId, but calling a Meteor.method from in there will not “transport” the userId (unless I use the hack above)
Everyone says you can do this with webapp. The documentation is still not clear and lack of examples.
I’m using restivus package, it’s quite good but not maintained. I want to switch to axios after meteor 3 migration. If someone knows resources for webapp, it will be super.
This forum has at least 20 different discussions about webapp, with all possible examples and some fixes, the difference between rawConnectHandlers and connectHandlers, authentication etc
Another full example here: Microservices with Meteor - DEV Community
Alternative solution: simple:rest. You can just find the repo, update it, understand it and start using it and ideally push the updates to the community.