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

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

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

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

Alex Sidorenkovor 2 Jahren
Why not?

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

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

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

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