Video wird geladen...
Video konnte nicht geladen werden
Middleware in Next.js 13
52,730 Aufrufe • vor 3 Jahren •via X (Twitter)
9 Kommentare

Dan vor 3 Jahren
i mainly use the middleware to kick the user back to login if they are not logged in

@uartnetvor 3 Jahren
Would be better if we could create nested middlwares !

Ben Bakervor 3 Jahren
@asidorenko_ have you had any success accessing cookies/sessions. Seems like it's not yet possible...

Alex Sidorenkovor 3 Jahren
Why not?

Salik Jamalvor 3 Jahren
Very helpful post, I was just looking for this yesterday.

Krivoox 🇦🇷vor 3 Jahren
How do you edit that way? any program or template?

Pugazh.tsxvor 3 Jahren
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)vor 3 Jahren
Me: what exactly is a middleware 😛

Alex Sidorenkovor 3 Jahren
@tmoutinho_ Trigger a refetch for what? What are you trying to accomplish?
