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
{{ message }}
Repository navigation
bug(gotrue): FailureReason matches english messages instead of error_code #409
while migrating a backend to supabase i noticed GotrueException.Reason is guessed from the message text. FailureHint.DetectReason does Content.Contains("Invalid login"), Contains("email"), Contains("password") and so on, ordered by status code.
the auth server has returned a machine readable error_code in every error body since early 2024 (invalid_credentials, email_not_confirmed, refresh_token_not_found, user_already_exists, weak_password, ...). every other official client (js, swift, kotlin, python, flutter) reads that field and exposes it as a typed code.
@fresh55 Indeed, that huge switch statement has been implemented a long time ago.
It's probably worth looking into the error_code instead.
I'll have a look soon enough
Activity
Tr00d commentedon Sep 4, 2026
@fresh55 Indeed, that huge switch statement has been implemented a long time ago.
It's probably worth looking into the
error_codeinstead.I'll have a look soon enough