You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using the updateUser function to update the users password and providing a too short password, the function throws the following exception:
TypeError: Instance of 'JSArray<dynamic>': type 'List<dynamic>' is not a subtype of type 'List<String>'
To Reproduce
Run the following example code when being logged in with the minimum password setting in the Supabase Dashboard set to a value >3:
final supabase = Supabase.instance.client;
await supabase.auth.updateUser(auth.UserAttributes(password: "123"));
Expected behavior
I would expect the function to throw the AuthWeakPasswordException
Version:
Happens on Android and the Web. Flutter Version: 3.19.5
Describe the bug
When using the
updateUser
function to update the users password and providing a too short password, the function throws the following exception:TypeError: Instance of 'JSArray<dynamic>': type 'List<dynamic>' is not a subtype of type 'List<String>'
To Reproduce
Run the following example code when being logged in with the minimum password setting in the Supabase Dashboard set to a value >3:
Expected behavior
I would expect the function to throw the
AuthWeakPasswordException
Version:
Happens on Android and the Web. Flutter Version: 3.19.5
????????? supabase_flutter 2.5.1
??? ????????? supabase 2.1.1
??? ??? ????????? functions_client 2.0.0
??? ??? ????????? gotrue 2.6.0
??? ??? ????????? postgrest 2.1.1
??? ??? ????????? realtime_client 2.0.4
??? ??? ????????? storage_client 2.0.1
Additional context
I debugged the
supbase_flutter
code a bit and to me, it looks like the problem is inside theGotrueFetch
_handleError
function:supabase-flutter/packages/gotrue/lib/src/fetch.dart
Line 50 in c4e73c7
I assume the issue is introduced with #879
The text was updated successfully, but these errors were encountered: