jmreyes / passport-google-id-token

Google ID token authentication strategy for Passport and Node.js.
MIT License
44 stars 22 forks source link

Is there any chance of using it with loopback-component-passport #11

Open grzegorzgolec opened 7 years ago

grzegorzgolec commented 7 years ago

Probably something crashes in strategy.js, here

if (self._passReqToCallback) {
      self._verify(req, parsedToken, parsedToken.payload.sub, verified);
    } 

And I have got unexpected error

TypeError: done is not a function
    at C:\Users\Grzegorz\Documents\WebStudio\macaron-api\node_modules\loopback-component-passport\lib\passport-configurator.js:214:7
    at C:\Users\Grzegorz\Documents\WebStudio\macaron-api\node_modules\loopback-component-passport\lib\models\user-identity.js:162:15
jmreyes commented 7 years ago

Hi Grzegorz, I'm sorry for such a late reply, I totally missed this. I don't know much about loopback and sadly I have very little time to look into it, but feel free to give me more information or submit a pull request if you find out what the issue is.

delyan-georgiev commented 7 years ago

Did someone found a solution for this?

delyan-georgiev commented 7 years ago

@grzegorzgolec did you solve this?