I trying to implement login facebook by using Loopback as API,
Following http://loopback.io/doc/en/lb3/Tutorial-third-party-login.html and https://github.com/strongloop/loopback-example-passport I can't apply the tutorial to my case because at the example, client side and server side are on the same project.
My app:
Web application (NextJS custom express server)
API application (Loopback)
From the following flow, I can't implement this flow by using Loopback :( I can register/login via username and password in a normal case but I confusing to register/login by facebook login.
This behavior would be very easy to implement using Loopback. Assuming you are following the third party login documentation, you would simply:
facebook-passport
authentication.authpath
(ie http://<api-server>/auth/facebook
).successRedirect
to http://<app-server>/<post-login-url>
.