@whippsp/auth0-helper 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/Auth0Helper.js +4 -0
  2. package/package.json +1 -1
package/Auth0Helper.js CHANGED
@@ -1,12 +1,16 @@
1
1
  module.exports = function(userModule) {
2
2
  let originalHandler = null;
3
+ console.log("Auth0Help0er module started");
3
4
 
4
5
  // Use a getter/setter on exports to "trap" the function definition
5
6
  Object.defineProperty(userModule.exports, 'onExecutePostLogin', {
6
7
  get: () => {
7
8
  return async (event, api) => {
9
+ console.log("Auth0Help0er module override.");
10
+
8
11
  // 1. Logic to check skip flag
9
12
  if (event.transaction?.metadata?.skipremainingactions === 'true') {
13
+ console.log("Skipping");
10
14
  return;
11
15
  }
12
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whippsp/auth0-helper",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "A helper to override Auth0 Actions handlers with skip logic.",
5
5
  "main": "Auth0Helper.js",
6
6
  "publishConfig": {