3

Do you know any example code with loopback + passport + JWT?

The code in https://github.com/strongloop/loopback-component-passport and https://github.com/strongloop/loopback-example-passport seems to use sessions.

Or do yo know any alternative to passport with social login?

1 Answers1

0

I don't know if this will be of any help at all, but the issue here reveals a way of configuring loopback-component-passport to return a 'native' LoopBack access_token, rather than setting cookies, when you hit the /auth/google/callback endpoint.

Trevor
  • 10,903
  • 5
  • 61
  • 84