Skip to content
This repository was archived by the owner on Aug 5, 2026. It is now read-only.

v3.2.0

Choose a tag to compare

@github-actions github-actions released this 03 Feb 12:29
· 18 commits to develop since this release
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)