Clerk Auth Middleware and Custom Middlewae #1181
Replies: 2 comments 1 reply
-
@slyguy5646 Hii, have you found any workaround for this problem ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I'm currently working on a project with Next 13.4 (App Router) and I'm trying to implement middleware. The problem is, is that my app requires other custom middleware in addition to the clerk middleware.
My custom middleware looks like this
There are other admin pages that will be for managing this data that I do want only authorized users (via a Clerk managed account) to access. Is there a way for me to combine both my existing custom middleware with the Clerk
authMiddleware
helper? And I only would want to apply the custom middleware to the routes in theconfig
and the clerk middleware to the admin routes that I specify.Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions