passport
passport copied to clipboard
Simple, unobtrusive authentication for Node.js.
This is my `models/users.ts` file: import mongoose from 'mongoose'; const Schema = mongoose.Schema; import passportLocalMongoose from 'passport-local-mongoose'; export interface digitalWalletDocument extends mongoose.Document{ currencyName: string; value: number; } const digitalWalletSchema =...
We have been using passport for some time within our application and have had no issues but once upgraded from 0.5.2 to 0.6.0 we are suddenly seeing an error when...
https://github.com/jaredhanson/passport/blob/e1e4e1f0c225eea32b196c5be7f7a95c4af38bf1/lib/authenticator.js#L45-L59 `Authenticator.prototype.use` should have `@param {Strategy|undefined} strategy` as its type (or ``@param {Strategy|undefined|null} strategy`, as otherwise editors supporting type inference from JSDoc cannot parse function call properly when not using...
Why is my routes always getting unauthorized? This is where i'm setting my JWT Token: ``` authRouter.get('/callback', passport.authenticate('google', { failureRedirect: '/', session: false }), (req, res) => { const user...
Using `express-session` passport is trying to associate value in the session by `key` instead of using `req.session.save(cb)`. If there is latency on saving the session, the cb is called right...
installing and using passport is not working. I get an error `Error: Cannot find module 'passport'` even though it's installed I just want to use passport to support facebook-passport, but...
Since express v4.16.0 (released over 4 years ago) `body parser` has been re-added under the methods `express.json()` and `express.urlencoded()`. So I think it would be a good practice to use...
I just started using PassportJS recently and cannot find proper API documentation without digging through the source. The documentation only covers usecases with examples giving only a surface layer introduction...
When we use this lib with a Fastify response we get an error because in this case the methods setHeaders and end doesn't exists
Since March, Facebook requires Strict Mode, and since the "Valid OAuth redirect URIs" field does not allow for dynamically generated data, dynamic data should be passed with a state parameter...