One time password to email

Maybe you can help me. How can i develop the feature - One Time Password. generate, send it on email and user need to enter 4 digits to access

A think a can do it. with Magic Link via SendGrid, but it generates a long token, and i need just 4 numbers
Working with APIs
4 replies