I'm following the tutorial for adding Auth (https://nextjs.org/learn/dashboard-app/adding-authentication) but my authenticated function always returns false even after logging in.
In other server components, I can log in and access the auth() method which returns the session normally.
import authConfig from '@/auth.config';
export default authConfig.auth;
export const config = {
// https://nextjs.org/docs/app/building-your-application/routing/middleware#matcher
matcher: ['/((?!api|_next/static|_next/image|favicon.ico).*)'],
};```
My middleware is in /src and looks like this ^