Why getSession is slow #1432
Unanswered
meotimdihia
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It takes 200 ms for official examples. And the same as my website.
On first request,
/api/auth/session
even take ~2s to finish.My website is deployed on Vercel.
Edit: I checked request
https://next-auth-example.now.sh/api/auth/session
traveled from sin1 -> sfo1 region:sin1::sfo1::4lz2w-1614827528416-43b17624ecbf
I think if I used JWT, the request can be verified directly on serverless function?
Edit2: It seems this is Vercel problem. I posted the question to Next.js discussion: vercel/next.js#22753
Beta Was this translation helpful? Give feedback.
All reactions