You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am creating a credit-based platform using Stripe and Auth0. I have payment through strip which then hits a webhook where I update the app_metadata using the Auth0 Management Client to update the credits property. However, I am not sure how to get the value to update on the frontend? I add the custom claim through an Action in the Login flow. I have tried customizing the userInfo endpoint using handleProfile with an afterRefetch function that gets the value using the management client. This causes an error with Too Many Requests.
Reproduction
Add custom claim in Action in Login flow
Login to app
Update app_metadata using management client
Custom claim has stale value
Additional context
No response
nextjs-auth0 version
^3.5.0
Next.js version
14.2.1
Node.js version
20.10.0
The text was updated successfully, but these errors were encountered:
Checklist
Description
I am creating a credit-based platform using Stripe and Auth0. I have payment through strip which then hits a webhook where I update the
app_metadata
using the Auth0 Management Client to update thecredits
property. However, I am not sure how to get the value to update on the frontend? I add the custom claim through an Action in the Login flow. I have tried customizing theuserInfo
endpoint usinghandleProfile
with anafterRefetch
function that gets the value using the management client. This causes an error withToo Many Requests
.Reproduction
app_metadata
using management clientAdditional context
No response
nextjs-auth0 version
^3.5.0
Next.js version
14.2.1
Node.js version
20.10.0
The text was updated successfully, but these errors were encountered: