It would seem that the option protocol: 'oauth2' provides a verify() method, but what if I want to provide my own verify method? (And what are protocols anyway? Is there a tutorial anywhere or some notes to provide more details as to how the pieces fit together?)
I would like to use https://github.com/leftmostcat/passport-oauth2-password-grant, customizing to provide my own
userProfile()
. Inconfig/passport.js
I have:It would seem that the option
protocol: 'oauth2'
provides averify()
method, but what if I want to provide my own verify method? (And what are protocols anyway? Is there a tutorial anywhere or some notes to provide more details as to how the pieces fit together?)