chapter-three / next-drupal

Next.js for Drupal has everything you need to build a next-generation front-end for your Drupal site: SSG, SSR, and ISR, Multi-site, Authentication, Webforms, Search API, I18n and Preview mode (works with JSON:API and GraphQL).
https://next-drupal.org
MIT License
635 stars 175 forks source link

Too many Tokens call #636

Open fabrer opened 10 months ago

fabrer commented 10 months ago

Package

I’m not sure

Ask the question

Hello,

I am reaching out to seek assistance with an issue I am experiencing in my Drupal Next setup with a NextJS frontend.

I have configured Drupal Next with a frontend in NextJS for an informational and public website. There is no authenticated section on the site. Upon analyzing the NewRelic statistics, I have observed an unusually high rate of 1000 calls per minute to the token retrieval functionality.

To provide some context, I have set up authentication between Drupal and NextJS using OAuth2 and a NextJS user. Despite this configuration, I am struggling to comprehend the reason behind these 1000 calls per minute. I am wondering if you or your team have encountered similar challenges in your applications.

If you have any insights into this matter or can recommend a specific configuration for authentication that may address this issue, I would greatly appreciate your guidance. Please let me know if additional information or logs are needed to better diagnose the problem.

Thank you in advance for your time and assistance.

Best regards,

p0zi commented 6 months ago

Try increasing token expiration time.