An OTP Auth Provider for Medusa 2.x with auto auth-identity creation
npm install bootssecurity-auth-otp
Implement seamlessly OTP-based authentication for Medusa 2.x with automatic auth identity creation

- Automatic Auth Identity Creation: Automatically creates auth identities when they don't exist, eliminating "Auth identity not found" errors
- Seamless Integration: Drop-in replacement for the original @perseidesjs/auth-otp plugin
- Enhanced Error Handling: Robust error handling with detailed logging for debugging
- Backward Compatible: Maintains full compatibility with existing implementations
``bash`
npm install bootssecurity-auth-otp
Simply replace the package in your dependencies:
`bash``
npm uninstall @perseidesjs/auth-otp
npm install bootssecurity-auth-otp
The plugin maintains the same API and configuration, so no code changes are required.
This version fixes the critical "Auth identity not found" error that occurred when:
- Users exist in the system but don't have corresponding auth identities
- OTP authentication attempts fail due to missing auth identity records
The fix automatically creates the necessary auth identity records, allowing OTP authentication to proceed seamlessly.