Closed N3evin closed 1 year ago
I had removed passport-azure-ad
and gotten this follow error.
TypeError: cb is not a function
at secretProvider (C:\Users\root\Documents\Git\demo\server\node_modules\jwks-rsa\src\integrations\passport.js:42:14)
at module.exports [as verify] (C:\Users\root\Documents\Git\demo\server\node_modules\jsonwebtoken\verify.js:101:10)
at module.exports [as JwtVerifier] (C:\Users\root\Documents\Git\demo\server\node_modules\passport-jwt\lib\verify_jwt.js:4:16)
at C:\Users\root\Documents\Git\demo\server\node_modules\passport-jwt\lib\strategy.js:104:25
at JwtStrategy._secretOrKeyProvider (C:\Users\root\Documents\Git\demo\server\node_modules\passport-jwt\lib\strategy.js:40:13)
at JwtStrategy.authenticate (C:\Users\root\Documents\Git\demo\server\node_modules\passport-jwt\lib\strategy.js:99:10)
at attempt (C:\Users\root\Documents\Git\demo\server\node_modules\passport\lib\middleware\authenticate.js:369:16)
at authenticate (C:\Users\root\Documents\Git\demo\server\node_modules\passport\lib\middleware\authenticate.js:370:7)
at Layer.handle [as handle_request] (C:\Users\root\Documents\Git\demo\server\node_modules\express\lib\router\layer.js:95:5)
at next (C:\Users\root\Documents\Git\demo\server\node_modules\express\lib\router\route.js:144:13)
All good :) The issue is my end with the verify callback function
I am trying to implement the it using the example provided in passport-demo
For my project I am trying to incorperate multiple authentication service such as google, facebook, Microsoft and auth0.
Below is my code, which I am using it together with Auth0.
However, I keep receiving this error.