combining auth-middleware with intl middleware #341
Replies: 3 comments 1 reply
-
We have docs and a working example of integrating with Auth.js here: https://next-intl-docs.vercel.app/docs/next-13/middleware#example-auth-js. Hope this helps! |
Beta Was this translation helpful? Give feedback.
1 reply
-
I believe what you are looking for is in this documentation. https://next-intl-docs.vercel.app/docs/routing/middleware#composing-other-middlewares |
Beta Was this translation helpful? Give feedback.
0 replies
-
thank you a lot the doc solved my problem🙏 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
while i am trying to protect a route using next-auth and middleware file because i have setup intl in middleware i am confused how to combine the to work correctly
this is my middleware.ts
and i want to combine this middleware which is for next-auth aswell
Mandatory reproduction URL (CodeSandbox or GitHub repository)
https://github.com/vahid-nejad/next-auth-fullstack/blob/main/src/middleware.ts
Reproduction description
.
Expected behaviour
.
Beta Was this translation helpful? Give feedback.
All reactions