kndt84 / passport-cognito

Passport strategy for AWS Cognito User Pools
https://www.npmjs.com/package/passport-cognito
MIT License
78 stars 30 forks source link

support passReqToCallback option #42

Open dev-aston opened 3 years ago

dev-aston commented 3 years ago

Is it possible to implement the passReqToCallback passport behaviour ?

passport.use(new CognitoStrategy({ userPoolId: 'ap-northeast-1_eSjqLfqKc', clientId: 'vtvg02tr21zmxvspyvawtv09b', region: 'ap-northeast-1', passReqToCallback: true }

The verify function signature would change.