We are using Auth0 SDK and trying to include a custom option to rule/access-token after login. The purpose is to be able to inject dynamic params into payload from rules. Client is a react.js app and we use @auth0/auth0-react library. Noticed that getAccessTokenSilently is extensible to include custom params:
Hi @dan.woda
no, unfortunately, I can not see these variables in the rules.
only if this variable is specified within the Auth0Provider.
is it possible to pass it while requesting a token?
After some testing, I can’t seem to get them to show up either. Let me reach out to our team and see if I can get to the bottom of it. I’ll report back when I have an answer.
@richlee
for me, i am using “@auth0/auth0-react”: “^1.8.0”,
adding ignoreCache: true as follow should work
getAccessTokenSilently({
ignoreCache: true,
‘foo’: ‘bar’
})