signInWithPassword with flutter throwing AuthException with code = null contrary to documentation
I'm currently facing the problem that
signInWithPassword is throwing AuthException not according to what is documented at https://supabase.com/docs/guides/auth/debugging/error-codes
For example in case of invalid credentials I get code = null and statusCode = 400. Therefore the behavior of signInWithPassword is unpredictable for me and i can't safely catch all cases.
I'm using supabase_flutter 2.9.1 and flutter 3.32.8
7 Replies
In adidtion to the URL (not exisitng) of the documentation of
AuthException.code seems outdated:
Also filed a GitHub issueGitHub
signInWithPassword throwing AuthException with code=null contrary t...
I'm currently facing the problem that signInWithPassword is throwing AuthException not according to what is documented at https://supabase.com/docs/guides/auth/debugging/error-codes For example...
Looks like it is something in the Flutter Client...
The Supabase-js client returns:

I think so as well, that‘s why I opened an issue in supabase_flutter
Ok i found out that this is happening only with the self hosted version of supabase.
Are you on the latest version?
I'm on the latest i can get via brew but let me check when i'm home
I'm going to bow out. I don't do self-hosting and if it is not there then you will likely need to generate an issue for Supabase to resolve if the auth version is different. I don't think though this has changed in many months or longer.