phamhieu / supabase-flutter-demo

Supabase flutter user management demo app.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Signup Screen fails on email verification required by logging in user.

JulianSwales opened this issue · comments

The response api for signup has been changed such that a user object is now returned so the check in the signup_screen fails when email verification is turned on.. Currently the code states
if (response.data == null && response.user == null)
however it should now be something like
if (response.data == null && (response.user != null && response.user?.emailConfirmedAt == null))

Thanks, Julian