© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago
Busslina

Best way to handle bad login

On my client I get
AuthException(message: Invalid login credentials, statusCode: 400)
AuthException(message: Invalid login credentials, statusCode: 400)


What is the best to check if the request failed due to bad credentials? Checking status code is 400 and message is
Invalid login credentials
Invalid login credentials
?

Maybe this info will change in the future.

Will not be a good idea to implement a more detailed exception like
BadCredentialsAuthException
BadCredentialsAuthException
?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Best way to handle realtime connections?
SupabaseSSupabase / help-and-questions
6mo ago
Best way to perform complex queries?
SupabaseSSupabase / help-and-questions
3y ago
Best way to implement anonymous access?
SupabaseSSupabase / help-and-questions
3y ago
Best way to add geo location?
SupabaseSSupabase / help-and-questions
4y ago