siegesmund / SwiftDDP

A Meteor client, written in Swift
MIT License
145 stars 60 forks source link

login meteor server with native facebook sdk in iOS ? #92

Closed PatrickSCLin closed 7 years ago

PatrickSCLin commented 7 years ago

Hi I'm new in Meteor, would like to use native facebook sdk to login in iOS,

then access data by meteor, I see nothing in loginWithService of SwiftDDP

so I should pass my facebook userId, token, expiredDate by method "login"

then implement Accounts.registerLoginHandler in server-side by myself ?

Do we have any more sweeter way to achieve this goal ?

since we already add accounts-facebook in server-side.

Also, what is the proper way to confirm a user needs to signup first in meteor ?

  1. always implement our own login handler, check exist to login or signup first

  2. has a proper account method to check does user exist in meteor

PatrickSCLin commented 7 years ago

problem resolved