UNPKG

@kilterset/auth0-actions-testing

Version:

Test and develop Auth0 Actions or Okta CIC Actions locally.

9 lines (8 loc) 216 B
/** * Denies a password reset if the user is not the ring bearer. */ exports.onPostChallenge = async (event, api) => { if (event.secrets.RING_BEARER !== event.user.name) { api.access.deny("Go away!"); } };