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
656 stars 154 forks source link

`verifyOTP` can't require `token` as a parameter #942

Closed MattSolvesGames closed 1 day ago

MattSolvesGames commented 1 week ago

Describe the bug The verifyOTP method currently requires token as a parameter, which makes email token sign-in impossible. This is because email token sign-in actually uses the tokenHash property instead and token cannot be specified at the same time or an auth error will occur. The JavaScript docs library has this correct.

Version (please complete the following information): Windows 10 64-bit

supabase_flutter 2.5.4
supabase 2.2.0
functions_client 2.2.0
gotrue 2.7.0
postgrest 2.1.2
realtime_client 2.1.0
storage_client 2.0.2