supabase / gotrue-dart

A dart client library for GoTrue.
MIT License
46 stars 37 forks source link

fix: verify otp throws on verification. #95

Closed dshukertjr closed 2 years ago

dshukertjr commented 2 years ago

What kind of change does this PR introduce?

Currently, verify otp throws upon successful verification. This PR fixes that. Fixes https://github.com/supabase-community/supabase-flutter/issues/251

What is the current behavior?

Successful verify throws

What is the new behavior?

Verification should go through successfully without any issues.

dshukertjr commented 2 years ago

In terms of testing, receiving OTP within the testing environment is currently not possible, so that is why this method was not tested.