Next.js Middleware Explained | Basic Auth

  Рет қаралды 342

Oskar Puchalski

Oskar Puchalski

3 ай бұрын

Next.js middleware is a great piece of API to use for many use cases. Let see how to use them and what they can be used for!
🔗 LINKS
Repo: github.com/mlodyoskar/2023-08...
My Discord Server: / discord
Subscribe if you want to watch more videos on Next.js and React.js!
#react #nextjs13 #reacthookform #rhf

Пікірлер: 5
@alexanderbrewster3595
@alexanderbrewster3595 3 ай бұрын
Thanks for the help
@blackbeans3112
@blackbeans3112 3 ай бұрын
Thanks for this bro.. It really helps me.. logged in like github or google is the same to implement on this in middleware?
@oskarpuchalski
@oskarpuchalski 3 ай бұрын
Glad it helped! Not really, when you want to login with github or google you need to keep session somewhere for example in database. You could use clerk to let them handle that for you or use library like next-auth to help you handle that.
@blackbeans3112
@blackbeans3112 3 ай бұрын
@@oskarpuchalski After i grab the data of github or google account.. all the session of github or google must store in database and not include the exp date or include it? the backend will usually the one who set the exp date? or the frontend
@clickbaitpolice9792
@clickbaitpolice9792 Ай бұрын
@@blackbeans3112 mate, I'd just use Supabase as your backend and that has guides on implementing auth and OAuth. there's a lot of documentation on it
You Shouldn't Use Export Default To Export Your Components #shorts
0:27
2000000❤️⚽️#shorts #thankyou
00:20
あしざるFC
Рет қаралды 15 МЛН
Why You Should Always Help Others ❤️
00:40
Alan Chikin Chow
Рет қаралды 107 МЛН
How To Fix Next.js API Route timeout
5:26
Oskar Puchalski
Рет қаралды 341
You need to start self hosting! Here's how to start!
2:16
Thomas Wilde
Рет қаралды 314
Exercism Bob - React TS
6:32
Sergio Ullaguari
Рет қаралды 1
AI Tool That Makes Me Learn 10x Faster
5:02
Oskar Puchalski
Рет қаралды 2,8 М.
Next.js 13 Crash Course Tutorial #10 - Loading UI & Suspense
6:51
Next.js Tutorial - 69 - Sign In and Sign Out
4:11
Codevolution
Рет қаралды 49 М.
Middleware in nextjs | Nextjs fullstack course
41:39
Hitesh Choudhary
Рет қаралды 38 М.