Comments (3)
I get the same error now, had it working a couple of weeks ago. Some package has updated and broken the app I believe
from meanauthapp.
Ok this fixed it.
In User.js file
const token = jwt.sign(user, config.secret, {
change user to {data: user}
from meanauthapp.
Thank you for the answer! I'll try solution asap
from meanauthapp.
Related Issues (20)
- getting unauthorized in passport.js HOT 11
- unauthorized when posting users/profile-2 HOT 11
- Changes in HTML files not reflecting HOT 5
- .gitignore file is missing
- cannot create a new component in the components folder HOT 2
- Check if user with email already exists
- Heroku deploy not working HOT 4
- You have to be inside an angular-cli project in order to use the serve command.
- if(data.success) error HOT 1
- Mongoose showing null object though collection exists in MongoDB
- User password returned in the jwt token
- SyntaxError: Unexpected token < in JSON at position 0 HOT 4
- Crashing server on POST request - PT3 HOT 1
- logging (jwt_payload) shows nothing
- Authenticate error in Postman HOT 1
- getting unauthorized in passport.js HOT 2
- 'flash-messages' is not a known element:
- Property 'user' does not exist on type 'Object'
- change your code like this
- Hey I am getting the same issue while registering. Did you find the solution?
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 meanauthapp.