I’m having a difficult time figuring out how to replace the authentication functionality of Meteor.
For context, I want to replace the Meteor front-end with Ionic, so I need to remove dependencies on Meteor. Also, I’m using GraphQL on the back-end.
Things I’ve tried:
Reverse engineering meteor/useraccounts:core. It would be nice if there are methods I could call on the backend to login a user, but I don’t see anything like that.
Using accounts.js. I’m having a hard time groking the documentation and overall strategy.
Using meteor client bundle. It hasn’t been updated in a long time, so I don’t think it’d be worth my time to continue figuring it out.
You don’t need any meteor packages on the client.
This is the way I work with my react native project:
All you need is call the login method (via apollo/graphql for example) and store the token somewhere in the client.
After that, you will need to send the token along with your requests.
Thanks everyone! I’m digging into the Account Server code and figuring things out. I might post some more questions here to get some feedback on my implementation.