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:
const { getAccessTokenSilently } = useAuth0();
const accessToken = await getAccessTokenSilently({
audience: 'myaudience',
scope: 'read:read_users',
'foo': 'bar'
});
The question is, how do we get access to foo=bar from inside the rules? Thanks
P.S: solution this could not help solve our problem.