Refactor nextjs middleware to use withAuth #4804
Unanswered
rlawrence89
asked this question in
Help
Replies: 1 comment
-
I also would like to know how we can use next-auths middleware after next.js 12.2 middleware updates |
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.
-
The following is my current middleware file used in NextJs. After reading the docs for Next-Auth I see that "withAuth" can be used. I have looked around for examples but no luck and the docs example just isn't enough for me to grasp the withAuth concepts.
Is it possible to rewrite my current code using withauth?
Beta Was this translation helpful? Give feedback.
All reactions