Skip to content

feat: add event priority configuration option#45

Merged
adevinwild merged 1 commit intodevelopfrom
feat/event-priority-options
Feb 3, 2026
Merged

feat: add event priority configuration option#45
adevinwild merged 1 commit intodevelopfrom
feat/event-priority-options

Conversation

@adevinwild
Copy link
Copy Markdown
Member

Summary

  • Add events option to plugin configuration for setting event priorities
  • Re-export EventPriority from Medusa for convenience
  • Use Events enum in API routes instead of hardcoded strings

Usage

import { EventPriority, 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 }
    }
  }
}

Test plan

  • Build passes
  • All HTTP integration tests pass (11/11)

🤖 Generated with Claude Code

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Feb 3, 2026

🦋 Changeset detected

Latest commit: 6734f0e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@perseidesjs/auth-otp Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@adevinwild adevinwild force-pushed the feat/event-priority-options branch from 730f4eb to 6734f0e Compare February 3, 2026 12:27
@adevinwild adevinwild merged commit 667efca into develop Feb 3, 2026
1 check failed
@adevinwild adevinwild deleted the feat/event-priority-options branch February 13, 2026 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant