Загрузка видео...

Не удалось загрузить видео

На главную

Middleware in Next.js 13

52,722 просмотров • 2 лет назад •via X (Twitter)

Комментарии: 9

Фото профиля Dan 
Dan 2 лет назад

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

Фото профиля @uartnet
@uartnet2 лет назад

Would be better if we could create nested middlwares !

Фото профиля Ben Baker
Ben Baker2 лет назад

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

Фото профиля Alex Sidorenko
Alex Sidorenko2 лет назад

Why not?

Фото профиля Salik Jamal
Salik Jamal2 лет назад

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

Фото профиля Krivoox 🇦🇷
Krivoox 🇦🇷2 лет назад

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

Фото профиля Pugazh.tsx
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)
Kishore Andra (KcH)2 лет назад

Me: what exactly is a middleware 😛

Фото профиля Alex Sidorenko
Alex Sidorenko2 лет назад

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

Похожие видео