Closed mahmed74 closed 3 weeks ago
Hey, thanks for the issue!
import { authMiddleware } from "@clerk/nextjs"
needs to be changed to import { authMiddleware } from "@clerk/nextjs/server"
If you're up for it, please open a PR improving our docs 😊 You can find all relevant information on how to get started in our contributing documentation. Thanks!
The Clerk webhook documentation seems outdated under "Webhooks > Sync Clerk Data to your application with webhooks" (https://clerk.com/docs/integrations/webhooks/sync-data)
the auth middleware shows an import in docs
import { authMiddleware } from "@clerk/nextjs";
export default authMiddleware({ ignoredRoutes: ["/api/webhooks(.*)"], });
export const config = { matcher: ['/((?!.*\\..*|_next).*)', '/', '/(api|trpc)(.*)'], };
which throws an error that
Module '"@clerk/nextjs"' has no exported member 'authMiddleware'.