Nextjs-auth0 - 401 Error when not logged in?

Hello folks,

Just created the nextjs-aut0 example app based on the steps in the readme here: GitHub - auth0/nextjs-auth0: Next.js SDK for signing in with Auth0

Now when I’m not logged in, it still calls the auth/me route and I get a 401. Is there a better way to check if I’m logged in without actually trying to read user data and responding with a 401?

Thank you so much!

I am also having the same Issue. Did you get any solution?