docs icon indicating copy to clipboard operation
docs copied to clipboard

JWK should be cached in Rails QuickStart

Open vhiairrassary opened this issue 4 years ago • 2 comments

In the Rails QuickStart, JWK is fetched for each secured request. It hurts performances & we could hit auth0 rate limit.

What do you think about leaving a note or modifying the code available in the QuickStart? It seems other developers have the same issue too:

  • https://stackoverflow.com/questions/46791707/cache-auth0-public-key
  • https://dev.to/dschlauderaff/creating-an-ember-spa-with-auth0-authentication-with-a-rails-api-4pp0

vhiairrassary avatar Apr 27 '20 07:04 vhiairrassary

I think same thing. I would like you to add that I think that mass producing a program that makes a large number of requests is only disadvantageous for both parties.

bino98 avatar Aug 16 '21 10:08 bino98

+1 on this. This seems like a pretty simple issue to fix in the docs.

fmarkwong avatar Dec 08 '22 22:12 fmarkwong