@perseidesjs/auth-otp
enables OTP (One-Time Password) authentication in your Medusa applications, enhancing security and providing an alternative to traditional password-based authentication.
Prerequisites
Before using the plugin, ensure you have:- Medusa v2.3.0 or later (plugins were introduced in this version)
- A Medusa application already set up and running
Understanding Auth-OTP
Traditional password-based authentication has several limitations:- Users forget passwords
- Password reuse leads to security vulnerabilities
- Account recovery processes can be cumbersome
Installation
We can now install the plugin:medusa-config.ts
file: