Next.js JWT Authentication

preview_player
Показать описание


This video can be combined with other videos:

00:00 Preview
01:32 Prebuilt backend
03:58 Setup
06:22 Template
09:26 Navigation
14:24 Register
21:37 Login
25:22 Authenticated User
29:09 Logout

#nextjs #reactjs #javascript
Рекомендации по теме
Комментарии
Автор

i have been looking for such a tutorial for so long. God bless you sir

thomasfrimpong
Автор

This was excellent tutorial ...although I am quite new to Next JS....I would like to see some NextJS in-depth tutorial on this channel...Thank you :)

codedjango
Автор

Thanks. credentials:true should be told everywhere

varshithkumar
Автор

very helpful @Antonio @Papa. Thank you.

joecolas
Автор

You should also make a tutorial where you use Next JS as a backend.

angpoginiko
Автор

What a great content

Would you consider to cover some more next js authentication tuts especially on protected routes and how we can apply them in nexr js

mooder
Автор

I don't get the cookies in the browser, but i get it on postman and in the response headers, any idea how i can solve this?

ogunjefejiro
Автор

i didnt understand how do you have connect your nestjs with your nextjs? Only with your ?

wsh
Автор

Awesome very informative and learning video, sir can u give the some hint or can make video on .Net Core API JWT authentication as backend and NextJs as frontend like login form connect the .net core web api.

jennasyeda
Автор

Sir could you explain how to use refresh tokens as well with this approach.

AbrahamWilson
Автор

A bit late :D, I'm wonder about accessing the homepage after trying to login with invalid username/password, And I'm getting "Hi undefined" although my back end return 403, so looks like my front end does not raising an exception when login request fails. any idea how to fix???

abrahems
Автор

can you deploy it and serve nextjs static files from gofiber ?

oussamasethoum
Автор

Where are you even verifying and signing the jwt token? It is nowhere in this tutorial.

timmukhamedov
Автор

you're barely using typescript, you'd rather don't use it then, and youre using vanilla react, not NextJs

pelaoinfo
Автор

Hi, can you please update your Auth API.

rajatthapa
Автор

Is it safe to send whole user data on Home page? Can hackers manipulate it?

turing
Автор

SIR MAKE VIDEO OR AUTHENTICATION

JWT AUTHENTICATION ( Login user can't access SignUp page and, Login User also Can't access Login page again when he is not logout

GOOGLE, FACEBOOK authentication and Session and Cookie.
and Token store In Mongodb Database and verify token is Right

anishbishnoixD
Автор

Sir make Nuxt.js full authentication system make o to hero course

RamuRamu-eusx
Автор

bro first make api folder and then start recording your video
ok

NiravKumbhani
Автор

to any one need to khow how cookies set
if you open AuthController
yo will fiend login response
send bake with cookies save in "jwt" value
so this will save automatic in browser >
and in front nextJS
you set ( credentials: 'include') in fetch option
so add credentials: 'include', will auto send jwt cookies to server in header request when call useEffect method ( old way)

so if you use ssr with new nextjs with getServerSideProps method
will not work because getServerSideProps run in server and cookies or local-storage run in browser
so for any one need new way if push it in my github account
just Follow and start repo

elteyab