Next.js protected routes & JWT verify (Updated video link in description)

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


#Nextjs #protectedRoutes #jwt #verify #cookie #React
Рекомендации по теме
Комментарии
Автор

Great video!
Not sure how I missed in a few days ago when I saw the previous video.
Your videos are on point my friend!
Keep up the great work.

yorkitca
Автор

After implementing all the code shown in the video I am getting this error:

*You're using a Node.js module (crypto) which is not supported in the Edge Runtime.*

justfun
Автор

Thank you for good explanation. One thing — you don’t have to import React from “react” in NextJS pages.

VladimirAmosov
Автор

Great tutorial. I have been looking for this for so long. Thanks

ranjmahmood
Автор

So good tutorial to the point not necessaritly long. and clear

anoniem
Автор

Great content bro, you explain things so good and easy. Thanks man.

eleganz
Автор

This is amazing. Keep up the good work 🙂

carefree_ladka
Автор

Hey thanks a lot for this 👍. Straight to the point and well explained 👌

akhil
Автор

Thank you. Great tutorial and simple explanation

ivaxCVPraiaMoinho
Автор

This was so great! 😃You really made the whole thing simple.

keeganguitar
Автор

This video deservers more view and likes. Great content

navpreetsingh
Автор

Hello, your tutorial is so good. I follow your tutorial but i got error 'Uncaught Error: The edge runtime does not support Node.js 'buffer' module' in middleware.js which is lead to import { verify } from "jsonwetoken" include buffer node.js api. How can i solve that

phariezhotspoon
Автор

in _middlewar.js file am tying to us useSelector hook to get Redux state values, then I got the error "Invalid hook call. Hooks can only be called inside of the body of a function ". What can I do now..?

mohithkumar
Автор

what a great video it was, just search and get understand everything. Thanks

waliullahkhan
Автор

sadly the jsonwebtoken isn´t able to run on the edge, so this isnt working anymore..
-> you can use "jose" instead
-> middleware must be a sibling of "/pages"

balduin_b
Автор

thank you so much SIR, , It helps a lot..❤️❤️

farhadalamkawser
Автор

Dynamic Code Evaluation (e. g. 'eval', 'new Function') not allowed in Middleware pages/_middleware

When I used middleware in nextjs.... woked fine
but build failed....
plz let me get help if possible?

Thanks For Great Tutorial.

RajeshKumar-sqji
Автор

Thanks a lot for this video, helped me set up my _middleware properly.

MarcelPirosca
Автор

Hello, _middleware.js is not working in version 120.4 in nextJS?..is it not supported?

nitingulabani
Автор

this is what im lookin for thanks🚀 I have jwt http-only cookie auth react app too.. and now I want to create another one with next but Im confuse how to role based protected routes in next

willyhorizont