You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The class PassportStrategy should contain an abstract validate() function
Package version
8.x
Passport version
No response
NestJS version
No response
Node.js version
No response
In which operating systems have you tested?
macOS
Windows
Linux
Other
In general it is weird that there is no functions what so ever. For example there are functions available like this.success(), this.pass(), this.error() that are also not part of the interface.
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Current behavior
When following the documentation and extending
PassportStrategy
the interface does not contain avalidate()
function and is therefor kinda useless.The interface
passport.strategy.d.ts
looks like this:I guess this is a bug because in the source file there is an abstract method.
The behavior is the same in latest 7.x and 8.x
Minimum reproduction code
https://github.com/nestjs/nest/tree/master/sample/19-auth-jwt
Steps to reproduce
No response
Expected behavior
The class PassportStrategy should contain an abstract
validate()
functionPackage version
8.x
Passport version
No response
NestJS version
No response
Node.js version
No response
In which operating systems have you tested?
Other
In general it is weird that there is no functions what so ever. For example there are functions available like
this.success()
,this.pass()
,this.error()
that are also not part of the interface.The text was updated successfully, but these errors were encountered: