Build a Login System in NodeJS with Passport.js Authentication | A NodeJS Tutorial

Build a Login System in NodeJS with Passport.js Authentication | A NodeJS Tutorial

Tyler Potts

3 года назад

58,039 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Janeworld Vlog
Janeworld Vlog - 15.12.2022 01:51

Can i ask where the signup video is before login

Ответить
Joseph Abliz
Joseph Abliz - 28.09.2022 21:33

password does not work.....

Ответить
Robin Jiao
Robin Jiao - 21.09.2022 07:15

very good passport and css tutorial 😂

Ответить
Artem Kovalevskyi
Artem Kovalevskyi - 28.08.2022 15:42

I can't even tell how happy I am that I found this channel. I spend a few days watching different videos and trying to figure out how to do a login thing and only your video worked! Thanks a lot!!!

Ответить
Andrew Leonardi
Andrew Leonardi - 26.08.2022 00:54

Any chance you have a guide on how to set up password reset?

Ответить
Arpit Joshi
Arpit Joshi - 30.07.2022 09:24

GG

Ответить
Maniac
Maniac - 29.07.2022 18:05

when i sign in it is always redirecting to sign in page and url says /login?error=true please help me

Ответить
Onesmo Kasongo
Onesmo Kasongo - 17.07.2022 01:25

I thank you.

Ответить
joo
joo - 09.07.2022 03:34

what is theme name?

Ответить
David Harrison
David Harrison - 03.06.2022 18:44

Logout syntax has changed since this video. It now requires a callback function for it to work.

app.get("/logout", function (req, res) {
req.logout(function (err) {
if (err) {
return next(err);
}
res.redirect("/");
});
});

Ответить
boostry123
boostry123 - 29.05.2022 12:09

is there a following video to use mongoDB?

Ответить
Mr S
Mr S - 21.05.2022 08:54

Thanks for your tutorial sir, I wanted same app with username and password from database and compare with the user input. Could you please help

Ответить
זכריה Zach Fenton פנטון
זכריה Zach Fenton פנטון - 12.05.2022 22:23

Wow amazing i must do this. I will use ejs instead of your handler Library hopefully it will be the same. I love your gui

Ответить
זכריה Zach Fenton פנטון
זכריה Zach Fenton פנטון - 12.05.2022 19:19

I thought with passoet it's a subscription paid

Ответить
Hunter Shaw
Hunter Shaw - 26.04.2022 23:46

(SOLVED) This tutorial may have been good about a year ago, but now with code evolving, things break.

TypeError: hbs is not a function

I might have to use something other than handlebars in this case. I even read the documentation, do I have to import the function "engine"? Confused as ever. If I find a solution I'll make sure to post it here as an edit.

EDIT:

app.engine('hbs', hbs.engine({
extname: 'hbs'
}));

Ответить
Tzeaka Records
Tzeaka Records - 22.04.2022 14:23

90% of this tutorial - HTML/CSS
10% node

Ответить
Akash Barik
Akash Barik - 06.04.2022 05:36

how do you make your MongoDB run all the time?

Ответить
digiart passion
digiart passion - 01.04.2022 15:30

Who is using handlebar today in the era of reactjs...thats little funny

Ответить
antony otieno
antony otieno - 25.03.2022 20:10

when testing out the logout route, the code doesn't work anymore. req.logout() and res.redirect('/') do not destroy the session.

Ответить
Jagaddewa V.
Jagaddewa V. - 12.03.2022 11:53

The admin account is setup, but when i try to logged in, it's error, any solutions?

Ответить
Rinkaku Schifâ
Rinkaku Schifâ - 10.03.2022 19:05

What is the password man it wont work

Ответить
AbdelRhaman Haridy
AbdelRhaman Haridy - 08.02.2022 06:01

Hello, I hope you are well

I have an error, how do I solve it?

app.engine('hbs', hbs({ extname: '.hbs' }));
^

TypeError: hbs is not a function
at Object.<anonymous> (E:\Login Node\node-login-passport\app.js:30:19)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47
[nodemon] app crashed - waiting for file changes before starting...

Ответить
Shravan
Shravan - 04.02.2022 13:29

What is password ??

Ответить
Grant Browne
Grant Browne - 30.01.2022 17:57

Very clear and made perfect sense with the way you explained it, thanks man!

Ответить
lightman
lightman - 31.12.2021 15:07

could you teach us how to make roles for this?

Ответить
Samyak Kumar Sahoo
Samyak Kumar Sahoo - 12.12.2021 17:15

All the essential concepts fused in one video . Nice work man

Ответить
José Portilha
José Portilha - 01.12.2021 01:21

Hello, I am getting the error saying "hbs in not a function" when I try to run the server, anyone else?

Ответить
Username = 5H0
Username = 5H0 - 24.11.2021 19:21

Hello, I was wondering what the difference is between "express-handlebars" and "ejs"; could you perhaps tell me?

Ответить
Regiss Mukubiza
Regiss Mukubiza - 24.11.2021 09:35

Hi Tyler, can I have your email?

Ответить
Ceren Baysal
Ceren Baysal - 21.11.2021 21:01

how to we update and delete the registered user?

Ответить
Jyotirmoy Deb
Jyotirmoy Deb - 15.11.2021 14:45

Where is the registration part here ?

Ответить
Nguyen Phong
Nguyen Phong - 31.10.2021 18:10

What's the vsc theme you using? I love it! Can you tell me? Thank you

Ответить
mikha
mikha - 28.10.2021 11:33

sir, this long video for only login tutorial? :(

Ответить
Maid In Heaven
Maid In Heaven - 22.09.2021 16:57

Really nice vid sir. Thanks

Ответить
Tion Kong
Tion Kong - 17.09.2021 11:38

Hi Tyler, thank you for the very well educating video. I am new to nodejs and i stumbled upon a lot of options when it comes to authentication like Passport, auth0, connect-auth. Which one do you think its better to use for everyday projects?

Ответить
Rajneesh Prajapati
Rajneesh Prajapati - 03.09.2021 12:24

Excellent explanation. Thanks Tyler

Ответить
Amber
Amber - 17.08.2021 04:24

Thank you so much, it's helpful for me, good tutorials!!!!

Ответить
Mohammad
Mohammad - 16.08.2021 01:00

What VSC theme do you use? It’s sick

Ответить
Kazdev 0
Kazdev 0 - 09.08.2021 16:11

best video thank you bro

Ответить
habil pekdemir
habil pekdemir - 30.07.2021 22:16

Question: if we want to redirect admin to specific page or if we want to show specific form just for admin how can we handle with it because in this example successRedirect all users to same page Thanks

Ответить
habil pekdemir
habil pekdemir - 30.07.2021 19:58

thanks Tyler

Ответить
George Nagy
George Nagy - 25.07.2021 23:53

Very Exellent

Ответить
Daan Verhelst
Daan Verhelst - 24.06.2021 22:03

Cheers

Ответить
rootpalladium
rootpalladium - 17.06.2021 03:20

thank you so much brother

Ответить
CARL JOSHUA SANCHEZ
CARL JOSHUA SANCHEZ - 23.05.2021 16:48

Great vid! But how do I implement a register page to it?

Ответить
Anand Deep
Anand Deep - 15.05.2021 23:59

Can we do it without session?

Ответить
Ajil Qado
Ajil Qado - 15.05.2021 04:26

thanks a lot for the code, but when i enter the password "pass" it still gives me the error message.

Ответить