Replies: 1 comment 3 replies
-
Honestly I hope we get the remix middleware support sooner rather than later, that would help us BIG TIME. For now, I've added a user profile cache support in https://github.com/meza/auth0-remix-server/releases/tag/v2.3.0 Described here: https://github.com/meza/auth0-remix-server#caching-the-user-profile I'm currently using it with dynamo and it helps to reduce the load a lot. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
We just encountered an issue with our Auth0 integration where the
/userinfo
endpoint was rate limited. This happened because we were callinggetUser
on each page load / request in our app to make sure the access token is valid and refreshed (we're using refresh tokens). However,getUser
always calls Auth0/userinfo
even if the access token / ID token is still valid rather than short circuiting if there is non-expired credentials.As things stand, I've implemented a check in our code to only call
getUser
if the token is near expiry or invalid according to theisValid
function. I feel that this logic should be incorporated intoauth0-remix-server
though.Is it by design that
getUser
always calls/userinfo
? Could that method also check the validity of the credentials first?Beta Was this translation helpful? Give feedback.
All reactions