Please try adding a new phone number field to the login and registration forms via these hooks (you can also search sample code snippets on the forum by these hooks):
You can also add the verification code field (and make it optional), and display some custom message like “Please enter the verification code you received…”. The other way to implement this is to redirect users to a custom verification form page after login/registration (you can set the redirect URL via the same hooks) https://hivepress.io/support/topic/how-do-i-redirect-to-another-page-on-click-the-sign-in-button/#post-4518
The hooks that you can use to call some custom functions on login/registration:
You can filter and add custom form errors via these hooks:
Hope this helps.