I'm creating an application in ASP.Net core MVC that requires user registration and verifying with an OTP by only entering their mobile phones.
I'm currently using Twilio to send SMS (do not want to use Twilio Verify only Twilio SMS) and I'm creating my own OTP by randomly generating 4 digits.
So to my question: How do I use this 4 digit OTP that I get on my phone and register the mobile phone and make sure the user is logged in?
I do not want to implement 2FA at the moment because it requires username and password.
This question is similar to: 'https://stackoverflow.com/questions/43862276/register-with-phone-number-instead-of-email-using-mvc-identity' But it has gone 4 years with no answer...
I appreciate any help, tips or/and further resources, thanks in advance!