The "callback" question
Hi M Alix !
Thanks for the demo of using loopback/passport/ionic. This work great for me expect the main question : how do you manage the "callback" operation. In server/server.js, once user is connected, you redirect the app to "/", but using Ionic mean develop an app and when I'm succesfull logged-in, the "/" display the home page of Loopback API server and not come back to the my app. Can you please give me your feedback about that, do you use InAppBrowser of something like that ?
Thanks !
S/
Hi @slegouffe kindly check https://github.com/denzelwamburu/lb-ngIonic .A better kickstarter for your ionic + loopback app.
@slegouffe hi the problem is that when you use loopback-component-passport, there's a callback url but that redirects to a website or localhost in this case, and using ionic you can't do that, because you need to redirect to the app instead of a Url, and in that kickstarter I couldn't find any example to log in with social providers, but thank you!
any idea of how to handle with the callbacks?