Override URL /api/auth/session when use JWT for session - improve performance. #1463
meotimdihia
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Related with:
API is slow when deploying to Vercel
#1432
vercel/next.js#22753
use Cloudflare for Next-auth
#725 (comment)
As @iaincollins said, I want to use Cloudflare workers to read and validate a JWT. Currently, I used Cloudflare Workers for 2 APIs in my websites.
This may be saved for users 200-400ms if their location is too far deployed server.
I checked this problem was implemented on auth0: https://github.com/auth0/nextjs-auth0/blob/c485044/src/frontend/use-user.tsx#L136
Beta Was this translation helpful? Give feedback.
All reactions