node-jwt-auth's People
Forkers
meron-yemane marjona6 cjhensen smuyesser melavanya sretundijr jamicope daniel-slabaugh steffencrespo jackseabolt jhnnyk tonybrancato bradcgarner ericpcho giri68 bookcasey rosuav bluelb84 mrskinny amandagaabo djiani stevengalvis kelseybutler9 patrickford pedrom40 f-adam-b zizify camerondodd lecatalyser jrvscm inakajin nbradf2 jessicaann ddoty89 colleensaltarelli imaginelife stavdavis ckarras11 pcmalinowski robertvfrazier lilprincexyz zackaryb123 tsongas gcarton ianedavery rrustia lpotrue jinesh701 pheiselmann kevinlnichols melodyplan laurajodz marquesrepo majickdave cactusnate22 daviddinnison darcydeangelowoolsey mosef simonmaxwell mwpaddock1 lemazza katelindeserano jes-a maddiereddy nawaryossef jpquense jorgerodriguez434 yakamoose alexmanzo jgmil smr310 tylovescode kevintavera trystant rachelekm zabaow wjypark94 bri997 kimkearney maxim-filimonov dermio shwetakoti andyly25 kimura-dev goblincore rrcheatham lakerfan1994 jeffwilkey elenag518 spartanindc calorab code-and-grow cameronhatch92 allyjfuller richigro ispoljari elainechan luchotess race-briggs ex-gitnode-jwt-auth's Issues
Basic authentication issue (convert to another process?)
The dialog box used by basic authentication pops up when incorrect UN/PW submission.
The issue can be fixed by adding failWithError: true
to the middleware as follows
const basicAuth = passport.authenticate('basic', { session: false, failWithError: true });
This allows us to remove the www-authenticate
header before sending the response which suppresses the built-in dialog.
app.use(function (err, req, res, next) {
res.removeHeader('www-authenticate');
next(err);
});
explain expect.fail
I'm having an issue understanding the test. When running the test expect.fail always fails the test. Can you give some insight into how expect.fail works?
How is .env being read?
@benjaminEwhite @oampo
Noticed in the lesson it says you'll need to create .env
file for the JWT_SECRET
etc. but I'm not seeing how this will be read. Don't you need the dot-env
package or similar?
Unable to access req.user server side
Tried several things, how do I get access to req.user on the server side once logged in?
Trying to save data to database with a user id attached to it, but can't get the user id.
Unhandled rejected promise
When a student deployed this code to Heroku and an error (bad database URL) occurred in runServer(), he got an unhandled rejected promise error from Node instead of a meaningful error message.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.