next-drupal icon indicating copy to clipboard operation
next-drupal copied to clipboard

Too many Tokens call

Open fabrer opened this issue 2 years ago • 1 comments

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,

fabrer avatar Dec 22 '23 14:12 fabrer

Try increasing token expiration time.

p0zi avatar Apr 12 '24 08:04 p0zi