Verify and log in through OTP
verifyOtpmethod takes in different verification types. If a phone number is used, the type can either be
phone_change. If an email address is used, the type can be one of the following:
- The verification type used should be determined based on the corresponding auth method called before
verifyOtpto sign up / sign-in a user.
final AuthResponse res = await supabase.auth.verifyOTP( type: OtpType.sms, token: '111111', phone: '+13334445555', ); final Session? session = res.session; final User? user = res.user;