@kilterset/auth0-actions-testing
Version:
Test and develop Auth0 Actions or Okta CIC Actions locally.
29 lines • 1.15 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.transaction = void 0;
const chance_1 = require("./chance");
const define_1 = require("./define");
exports.transaction = (0, define_1.define)(({ params }) => {
const locale = params.locale || chance_1.chance.locale();
return {
acr_values: [],
locale,
ui_locales: [locale],
requested_scopes: [],
protocol: chance_1.chance.auth0().protocol(),
redirect_uri: chance_1.chance.url({ path: "redirect" }),
prompt: ["none"],
login_hint: chance_1.chance.pickone([chance_1.chance.email(), undefined]),
response_mode: chance_1.chance.pickone([
"query",
"fragment",
"form_post",
"web_message",
]),
response_type: [chance_1.chance.pickone(["code", "token", "id_token"])],
state: chance_1.chance.string({ length: 32, alpha: true, numeric: true }),
requested_authorization_details: [],
linking_id: chance_1.chance.string({ length: 32, alpha: true, numeric: true }),
};
});
//# sourceMappingURL=transaction.js.map