Загрузка видео...
Не удалось загрузить видео
Middleware in Next.js 13
52,730 просмотров • 3 лет назад •via X (Twitter)
Комментарии: 9

Dan 3 лет назад
i mainly use the middleware to kick the user back to login if they are not logged in

@uartnet3 лет назад
Would be better if we could create nested middlwares !

Ben Baker3 лет назад
@asidorenko_ have you had any success accessing cookies/sessions. Seems like it's not yet possible...

Alex Sidorenko3 лет назад
Why not?

Salik Jamal3 лет назад
Very helpful post, I was just looking for this yesterday.

Krivoox 🇦🇷3 лет назад
How do you edit that way? any program or template?

Pugazh.tsx3 лет назад
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 лет назад
Me: what exactly is a middleware 😛

Alex Sidorenko3 лет назад
@tmoutinho_ Trigger a refetch for what? What are you trying to accomplish?
