delight-im / Android-DDP

[UNMAINTAINED] Meteor's Distributed Data Protocol (DDP) for clients on Android
Apache License 2.0
274 stars 54 forks source link

PR: add Meteor login with third party auth providers. #121

Open kponda opened 7 years ago

kponda commented 7 years ago

I use meteor custom login with postgresql.

This function is simple, call "login" with any parameters. It's like a Asteroid style. https://github.com/mondora/asteroid#loginparams

ocram commented 7 years ago

Thank you!

Just one question: How do you set up the server-side code that listens for logins with this method? Do you use Accounts.registerLoginHandler to register your own function that pulls data from the data map that has been passed?

kponda commented 7 years ago

Hello,

Yes, I used Accounts.registerLoginHandler. I did push own sample code to github.

https://github.com/kponda/samples/blob/master/MeteorCustomLogin/custom-accounts_server.js

Login with postgresql and create/update Meteor user collection.