Sir i have an error and the error is in index.js auth.authenticateTokens.unless({ path:[ {url:"/user/login",methods:["POST"]} {url:"/user/login",methods:["POST"]} ] }) ) The error is auth.authenticateToken.unless is not a function
Hi, Thanks for the Video, the code walk through development approach is good for new learners, if you can share the MVC/ architecture flow / diagram for this code, it may be very helpful to get big picture way of understanding the overall function flow system.
Hy.. whenever i login by sending username and password. I faced JSON Token error... { "message": "Unexpected token } in JSON at position 55" } kindly , help me for solving this error.
in case having *.unless is not a function error.
change the import to this const { unless } = require("express-unless")
you can change require to this var { unless } = require("express-unless");
i never see like you. you are so experienced.
Finally! Waiting for Flutter integration with Provider state management
I have an issue with the last step. When i try authorization by headers with the "TokenKey" a 403 Forbidden error is shown. Please help me
I'm facing same issue can u please tell how u resolved
Thank you for this tutorial. In users.services.js file line number 8 - it's better to add user.password!=null. Maybe you missed it
Thanks for notify !!
Fantastic 😊😊 viedo for node js... ☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️
Teşekkürler from Turkey good job
Sir i have an error and the error is in index.js
auth.authenticateTokens.unless({
path:[
{url:"/user/login",methods:["POST"]}
{url:"/user/login",methods:["POST"]}
]
})
)
The error is
auth.authenticateToken.unless is not a function
Me too, help please
const {unless} = require('express-unless');
The curly brackets are the key!
@@enriccatala8317 Thank you
@@enriccatala8317 thank you, Sir
you are best
Hi, Thanks for the Video, the code walk through development approach is good for new learners, if you can share the MVC/ architecture flow / diagram for this code, it may be very helpful to get big picture way of understanding the overall function flow system.
How to add card on stripe using android sdk
can you make the tutorial using Sql instead of mongoose
npm i -D nodemon ?
Hy..
whenever i login by sending username and password. I faced JSON Token error...
{
"message": "Unexpected token } in JSON at position 55"
}
kindly , help me for solving this error.
Have you check the api in Postman or Thunderclient
Is it possible to set the expiresIn for token infinite, meaning it won't expire? If yes can you share how and thank you!
Gracias!!
Nice
Thanks 😊
Don't you think that all functions that are related to databases should be async ?
yes all functions are already async, where the issue is ?
@@SnippetCoder haven't seen any async declaration before a function
Sir , API response show me message that "bcrypt is not defined " what should i do???
var bcrypt = require('bcryptjs');
Cannot set properties of undefined (setting ‘unless’)
Please help
change the import to this const { unless } = require("express-unless")
@@SnippetCoder I did it but problem still continue
C:\xampp\htdocs\projects\lost-found
ode_modules\express\lib
outer\index.js:513
this.stack.push(layer);
^
TypeError: Cannot read properties of undefined (reading 'push')
at Function.route (C:\xampp\htdocs\projects\lost-found
ode_modules\express\lib
outer\index.js:513:14)
please help this issue coming!!!
Cannot set headers after they are sent to the client
Can you please connect me on social media regarding your issue ?
@@SnippetCoder thanks bro I have solved the problame 🙏 thanks for replay
I had the same problem. I solved it updating Node JS to the latest version
TypeError: req.headers is not a function
help!!
Please verify from source code.
Is there any second part to this video..? If there is please share it in comment section...
ruclips.net/video/czed-wa21IU/видео.html
Hi, I would like to get the source code. I already follow you on the telegram
Shared on Telegram !!
Hello, when i test register route in postman i get this message "message": "data and salt arguments required", what am i doing wrong
Hello you can verify your code with our repo, get the source code from our GitHub