Video yükleniyor...
Video Yüklenemedi
Middleware in Next.js 13
52,730 görüntüleme • 3 yıl önce •via X (Twitter)
9 Yorum

Dan 3 yıl önce
i mainly use the middleware to kick the user back to login if they are not logged in

@uartnet3 yıl önce
Would be better if we could create nested middlwares !

Ben Baker3 yıl önce
@asidorenko_ have you had any success accessing cookies/sessions. Seems like it's not yet possible...

Alex Sidorenko3 yıl önce
Why not?

Salik Jamal3 yıl önce
Very helpful post, I was just looking for this yesterday.

Krivoox 🇦🇷3 yıl önce
How do you edit that way? any program or template?

Pugazh.tsx3 yıl önce
May be if don't need to overwrite here is the default one export { default } from "next-auth/middleware"; And add matchers that'll do🏌🏻

Kishore Andra (KcH)3 yıl önce
Me: what exactly is a middleware 😛

Alex Sidorenko3 yıl önce
@tmoutinho_ Trigger a refetch for what? What are you trying to accomplish?
