The verifyOTP method takes in different verification types. If a phone number is used, the type can either be sms or phone_change. If an email address is used, the type can be one of the following: signup, magiclink, recovery, invite, email_change, or email.
The verification type used should be determined based on the corresponding auth method called before verifyOTP to sign up / sign-in a user.