Authentication with Next Auth and Next.js 14 | Protected routes, Server & Client Sessions

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


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

The content is litreally so impressive. Everything is explained in quite simple way. Nothing extra in the video, just focusing on what actually needs to be done. Highly appreciated! Highly recommended! Thanks for the video.

ansarqazi
Автор

Part 2 with updating the session on the server would be greatly appreciated! Subscribed

NoahCuz
Автор

Very useful content, quick, no time-wasting. Highly recommended! 🔥🔥🔥🔥

ansarqazi
Автор

Very useful content, thank you very much, solve my problem

Twinkling-wydp
Автор

Subscribed, impressive stuff !! just on the point ♥♥♥

DhaouJawhar
Автор

Yes nice, Question, what about I want to go to another page, if he is not log in, I want to show that page does not have accesss.. or redirect, do you do that in the middleware?

jhoanmiguelescobararboleda
Автор

how does your terminal autofill stuff, that's new to me!

mateokladaric
Автор

Hi Man. Great content. Thanks. But I have a problem: I want to use session based authentication strategy (as you know jwt is little bit unsafe) and I also credentials provider. When I adjust credentials provider in auth.ts and other files, next auth throwing error something like " 'session': 'database' strategy doesn't support credentials provider" is there any way to fix it? if not, can you suggest me a library that allow users credentials login and uses session based strategy. What should I do? Thanks.

Prag
Автор

It works locally but in production gives me error 500

juventusi
Автор

And if possible can you login using email and socials for appwrite with nextjs with both server and client. Please do it because no one YouTube has done it properly

sahebbeshra
Автор

What is the plugin you are using that shows the errors inline?

ashwinmanghat
Автор

Hi Yan, Followed your video, Amazing work and looking forward for new videos.
Just needed to ask a question that while getting the session data on client side you've used useSession(), cant we use the same function on the server as well for getting the same session data ?

shanumehra
Автор

Ya we need part 2 with email and password and also save user in data base for google and github login

sahebbeshra
Автор

Can you tell what extension is showing you errors directly in the code?

BuhuuRecords
Автор

I will have your Desktop Wallpaper please!!!

sungo
Автор

Ithinkitwasveryinteresting, hower, Igottiredinmyheadasyoudidmakeanynaturalpausesinyournarration.

DudeFrom
Автор

idk why but i keep getting error 404 when clicking the button
and the terminal shows this

GET /api/auth/session 404 in 456ms
GET /api/auth/session 404 in 32ms
POST /api/auth/_log 404 in 32ms
POST /api/auth/_log 404 in 15ms
GET /api/auth/providers 404 in 44ms
POST /api/auth/_log 404 in 40ms
GET /api/auth/error 404 in 27ms

and the session object is undefined

levimorais