'Spring Boot only OTP login NO password

In the spring boot rest application (frontend end is Angular), Looking to implement OTP-based login. without any password. Every time a user needs to log in using a mobile/email number and the OTP sends it to the mobile/email.

The first-time login, treat as registration and create a user in DB, and further same user login will fetch profile data from DB.

Similar to https://www.cowin.gov.in/ enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source