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

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

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

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

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

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

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

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

Alex Sidorenko2 лет назад
@tmoutinho_ Trigger a refetch for what? What are you trying to accomplish?
Похожие видео
Protect routes with next-auth middleware in Next.js 13
Alex Sidorenko
139,308 просмотров • 2 лет назад
