Comments (2)
I use it like so app.use('/signin', verifyUser(), signin)
in place of this line
api-design-node-v2/src/server.js
Line 14 in 733c5e1
Auth is actually quite broken but luckily the instructor doesn't use it, he just bypasses it by creating a new user or disabling auth altogether.
Check out my branch if you want to see how I got auth to work. I had to replace bcrypt
with bcryptjs
npm package as it was complaining it couldn't find bcrypt_lib.node
whenever I tried to import it. This seems to be caused by bcrypt not being able to download a precompiled bcrypt lib and the fallback failing to build from source.
from api-design-node-v2.
thanks @timiscoding . You'll have to use it as middleware in your route for auth like @timiscoding said @corderophi678 .
from api-design-node-v2.
Related Issues (10)
- WIndows issue GraphQLError: Unknown operation named "null". HOT 1
- Cannot start
- Windows OS Script Fix
- .
- Hot reloading doesn't work on Windows
- Error when running npm install HOT 1
- not loading .qraphql files with raw-loader HOT 2
- yarn test Cannot find module 'webpack/lib/Watching' HOT 2
- Is this course going to PluralSight? HOT 1
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.
from api-design-node-v2.