Yes. This is possible. However, it would require some customisation from your side:
- First, you want to provide the callback to send the email yourself. This callback takes the email verification link as one of its inputs.
- In this callback, you want to extract the one time use code from the link (it's a query param in the link), and save it against some random number code (a 5 or 6 digit code) in your db. So in your db, there will be a map from OTP code => email verification code.
- In the email, you want to send the OTP code to the user.
- When they enter the code in the app, you can call the email verification consume code API that we expose via our backend SDK.
- Finally, you want to override that API on the backend SDK side to fetch the actual email verification code from the input OTP, and then call the original implementation with it.