Next.js Discord

Discord Forum

getting error while accessing clerk auth

Unanswered
Otterhound posted this in #help-forum
Open in Discord
OtterhoundOP
Error: Clerk: auth() was called but Clerk can't detect usage of authMiddleware(). Please ensure the following: - authMiddleware() is used in your Next.js Middleware. - Your Middleware matcher is configured to match this route or page. - If you are using the src directory, make sure the Middleware file is inside of it.

0 Replies