正在加载视频...

视频加载失败

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?

相关视频