0

Facebook recently very unfortunately deprecated AccountKit. One alternative could be Firebase Phone Auth as described here:

Facebook Account Kit Deprecated

I already use Firebase in combination with Parse-server. Is there a way to authenticate using Firebase in iOS, and then transfer/use that login to generate a user in Parse-Server?

Markus
  • 599
  • 1
  • 5
  • 18
  • It is possible but you'd need to create a custom Auth Adapter. You can see the current ones [here](https://github.com/parse-community/parse-server/tree/master/src/Adapters/Auth) and use them as template for creating the new one. You can either submit a PR to incorporate it to Parse Server or you can install locally only for your app. – Davi Macêdo Sep 26 '19 at 22:08
  • Thank you. It seems though that the auth flow is not your typical oauth2 for a phone number. You only get the end result (userId) directly from firebase, there is no server side secret token verification that I could trigger as far as I could find out. I might be totally off though. Did you try something similar with firebase before? – Markus Sep 27 '19 at 02:55
  • I'd try to use the Firebase SDK to do the phone authentication then send the returned credentials to Parse Server. Then your adapter could validate it in Firebase. – Davi Macêdo Sep 27 '19 at 15:49
  • Thanks, this works! Can you please post this as an official answer so I can mark it as solved (and give you the points)? – Markus Oct 18 '19 at 03:54
  • No problem. I am glad you figured it out :) – Davi Macêdo Oct 27 '19 at 06:02

0 Answers0