简体   繁体   中英

Authentication using Google and Facebook in Ionic 2

I am working on an Ionic 2 app . I would like to implement social login options such as google and facebook. My backend is built on Ruby on Rails API. I believe, I can use cordova facebook and google plugins for authentication.

Once the user is authenticated with facebook or google, redirect to backend API and authenticate with omniauth end-point setup in my API. This will authenticate the user in my app.

I would like to know if this is the right way to authenticate with google and facebook ? I would appreciate any kind of help on this topic.

Give Auth0 a try: http://auth0.com . It really simplifies all login scenarios!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM