-
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 priorityHIGH(50)DEFAULT(100) - Used when not specifiedLOW(500)LOWEST(2097152)
- 6e8b60a: Upgrade to Medusa 2.13.0 and use @medusajs/framework/zod
- 78d71d4: Remove assets from package
- 7860241: V3 : Upgraded to latest Medusa dependencies and allowed jwtOptions to be passed to the /verify API route
- 60a2fe9: Upgraded peerDependencies
- 28b08d4: Fixed the way we access the
app_metadatainside theget-auth-identity-stepby handling thenullvalue
- ee82ee9: Upgraded to latest versions of Medusa
- 1f55b7d: Keywords update for better discoverability
- bbc6414: Changed the plugin license to MIT
- 2ea3222: Enhance OTP authentication process with direct access for recently registered users
- 23dd317: Add pre-registration OTP workflow and validation
- a26f49f: Update OTP workflow steps to use 'key' instead of 'authIdentityId' and 'identifier'
- 8939555: Update OTP generation step to use 'tag' instead of 'purpose'
- b855685: Initial release