supabase / supabase-flutter

Flutter integration for Supabase. This package makes it simple for developers to build secure and scalable products.
https://supabase.com/
MIT License
711 stars 168 forks source link

Verify OTP support to hashed token #803

Closed guilhermezdev closed 8 months ago

guilhermezdev commented 8 months ago

I'm working on a invite users flow and I'm missing the OTP verification using just the hashed token sent on the email. The JS library has this implementation:

const { data, error } = await supabase.auth.verifyOtp({ token_hash: tokenHash, type: 'email'})

There is a reason for the dart implementation to drop this support? Also the docs for this method only mention SMS and mobile, which may be misleading.