UNPKG

@kilterset/auth0-actions-testing

Version:

Test and develop Auth0 Actions or Okta CIC Actions locally.

17 lines (14 loc) 392 B
import Auth0 from "../types"; import { chance } from "./chance"; import { connection } from "./connection"; import { define } from "./define"; export const identity = define<Auth0.Identity>(() => { const attrs = connection(); return { connection: attrs.name, provider: attrs.strategy, user_id: chance.hash({ length: 24 }), profileData: {}, isSocial: false, }; });