Node JS Register and Login API using JWT & MongoDB

preview_player
Показать описание
In this video we will learn how to write NodeJS Login and Register API for our Flutter application using JWT Token

⏱TIMESTAMPS
00:00 - Introduction
00:10 - Packages used
02:05 - let start NodeJS
03:09 - Folder Structures
11:50 - JWT & Errors Middleware
17:39 - User Controller
22:16 - API Routing
23:59 - User Model
27:17 - User Service
32:17 - API Testing

📄Source Code
Follow us to get Source @ Twitter | Facebook | Instagram | Telegram

📎Packages Used

🤝Stay Connected with me !

⛄If you like my work , you can support me
☑️DM For UPI Number

PLEASE SUBSCRIBE AND SHARE THIS VIDEO!!!!😳
THANKS FOR WATCHING!!!

🔥NODEJS API for Flutter Developers🔥

🔥Flutter Login & Register with Node JS Rest API 🔥

🔥 Flutter OTP Login Using NodeJS API 🔥

🔥 NodeJS Login & Register Rest API with MySQL 🔥

Tags and SEO Stuff :
#flutter #NodeJS #SnippetCoder
Рекомендации по теме
Комментарии
Автор

in case having *.unless is not a function error.
change the import to this const { unless } = require("express-unless")

hasanal-sayyed
Автор

i never see like you. you are so experienced.

destaonline
Автор

Finally! Waiting for Flutter integration with Provider state management <3

rog
Автор

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

scottanderson
Автор

Fantastic 😊😊 viedo for node js... ☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️

varaliyakrunal
Автор

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

anonymoususer
Автор

Sir i have an error and the error is in index.js


path:[
{url:"/user/login", methods:["POST"]}
{url:"/user/login", methods:["POST"]}
]
})
)

The error is

auth.authenticateToken.unless is not a function

tophub
Автор

Is it possible to set the expiresIn for token infinite, meaning it won't expire? If yes can you share how and thank you!

patrickaoun
Автор

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.

malikwahid
Автор

How to add card on stripe using android sdk

ramprasadsaini
Автор

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.

shanmugarajramaiah
Автор

Don't you think that all functions that are related to databases should be async ?

forsabarça
Автор

Hello, when i test register route in postman i get this message "message": "data and salt arguments required", what am i doing wrong

swazicreatives
Автор


this.stack.push(layer);
^

TypeError: Cannot read properties of undefined (reading 'push')
at Function.route

please help this issue coming!!!

AshishSharma-fotv
Автор

can you make the tutorial using Sql instead of mongoose

muhammadosama
Автор

Cannot set headers after they are sent to the client

MonawaaTbts
Автор

TypeError: req.headers is not a function

help!!

GilangYoman
Автор

Is there any second part to this video..? If there is please share it in comment section...

magie
Автор

Hi, I would like to get the source code. I already follow you on the telegram

janfranciscoramalho
Автор

Sir, API response show me message that "bcrypt is not defined " what should i do???

arthurplayz
visit shbcf.ru