@kilterset/auth0-actions-testing
Version:
Test and develop Auth0 Actions or Okta CIC Actions locally.
34 lines • 891 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.accessMock = accessMock;
;
;
function accessMock(flow) {
switch (flow) {
case "CredentialsExchange": {
const state = {
denied: false,
};
const build = (api) => ({
deny: (code, reason) => {
state.denied = { code, reason };
return api;
},
});
return { build, state };
}
default: {
const state = {
denied: false,
};
const build = (api) => ({
deny: (reason) => {
state.denied = { reason };
return api;
},
});
return { build, state };
}
}
}
//# sourceMappingURL=access.js.map