Dear Community,
I’m developing reactJS app using auth0-spa-js. I want to pass custom params through the loginWithRedirect() function and use same in rules to implement some custom logic.
Params:
roleID uuid
venue uuid
Which SDK this is regarding: auth0-spa-js
Is this the right format to do so?
in auth0-spa-js
<Button type=‘primary’ onClick={() => loginWithRedirect([‘passID’ : passID, ‘venue’ :venue ])}> Log In
in Rules
const [passID, venue] = JSON.Parse(context.request.query)