Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

Middleware in Next.js 13

52,698 Aufrufe • vor 2 Jahren •via X (Twitter)

9 Kommentare

Profilbild von Dan 
Dan vor 2 Jahren

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

Profilbild von @uartnet
@uartnetvor 2 Jahren

Would be better if we could create nested middlwares !

Profilbild von Ben Baker
Ben Bakervor 2 Jahren

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

Profilbild von Alex Sidorenko
Alex Sidorenkovor 2 Jahren

Why not?

Profilbild von Salik Jamal
Salik Jamalvor 2 Jahren

Very helpful post, I was just looking for this yesterday.

Profilbild von Krivoox 🇦🇷
Krivoox 🇦🇷vor 2 Jahren

How do you edit that way? any program or template?

Profilbild von Pugazh.tsx
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🏌🏻

Profilbild von Kishore Andra (KcH)
Kishore Andra (KcH)vor 2 Jahren

Me: what exactly is a middleware 😛

Profilbild von Alex Sidorenko
Alex Sidorenkovor 2 Jahren

@tmoutinho_ Trigger a refetch for what? What are you trying to accomplish?

Ähnliche Videos