Large number of Vercel Edge Middleware Invocations coming from next-auth's `/api/auth/session`
I am using the
create-t3-app
with NextAuth
for auth. Also using the pages
router for this project.
I had about about 3k page views yesterday when I noticed that my Edge Middleware Invocations
went up by 4% in one day, with /api/auth/session
out in the lead with over a 1/4 of all invocations.
I am using the database
strategy with NextAuth
and i call getServerAuthSession
in createTRPCContext
Is this to be expected, or am i doing something wrong?
0 Replies