setupOkta.js
// 3. Map the RuleSet to an OIDC app
3. Map the RuleSet to an OIDC app
3 . Map the RuleSet to an OIDC app
async function applyRuleSet(ruleSetPayload, app) {
  let rulePayload = ruleSetPayload.rules[0]
  ruleSetPayload.rules = []
  let ruleSet = await client.createRuleSet(ruleSetPayload)
  await ruleSet.addRule(rulePayload)
  await ruleSet.addMapping(app)
}
async function applyRuleSet ( ruleSetPayload , app ) { let rulePayload = ruleSetPayload . rules [ 0 ] ruleSetPayload . rules = [ ] let ruleSet = await client . createRuleSet ( ruleSetPayload ) await ruleSet . addRule ( rulePayload ) await ruleSet . addMapping ( app ) }
3.
3 .
// await ruleSet.addRule(rulePayload)