Skip to content

v3.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 03 Feb 12:29
9e11068

Minor Changes

  • 667efca: Add event priority configuration option

    Developers can now configure priority levels for OTP events via plugin options:

    import { EventPriority } from "@medusajs/framework/utils"
    import { Events } from "@perseidesjs/auth-otp"
    
    {
      resolve: "@perseidesjs/auth-otp",
      options: {
        events: {
          [Events.OTP_GENERATED]: { priority: EventPriority.CRITICAL },
          [Events.PRE_REGISTER_OTP_GENERATED]: { priority: EventPriority.HIGH }
        }
      }
    }

    Priority levels (from @medusajs/framework/utils):

    • CRITICAL (10) - Highest priority
    • HIGH (50)
    • DEFAULT (100) - Used when not specified
    • LOW (500)
    • LOWEST (2097152)