jaredhanson / passport-oauth2

OAuth 2.0 authentication strategy for Passport and Node.js.
https://www.passportjs.org/packages/passport-oauth2/?utm_source=github&utm_medium=referral&utm_campaign=passport-oauth2&utm_content=about
MIT License
607 stars 343 forks source link

Error: Unknown authentication strategy "oauth2" #149

Closed C0DE-IN closed 3 years ago

C0DE-IN commented 3 years ago

extends AuthGuard('oauth2')

the above line throws Error: Unknown authentication strategy "oauth2"

what could be the possible solution, Iam using on nestjs with a generic oauth provider https://upstox.com/developer/api/v2/docs/#authorization

jaredhanson commented 3 years ago

Based on the mention of AuthGuard, I'm guessing you are using Nest. Any issues with that framework should be filed with nestjs/passport.

acrtz commented 2 years ago

@noiissyboy did you end up finding a solution for this?