Auth error messages: is there a list of them? Or a way to access an object?

So far, I'm collecting them as I see them and handling them like this if (error == 'AuthApiError: Email not confirmed') { ... . I'm used to Firebase having these string-only type errors, but is that how it works with supabase too? https://supabase.com/docs/guides/auth/auth-email . I haven't found any lists of them so that I can make sure they're all accounted for.
Login With Email | Supabase Docs
Use Supabase to Authenticate and Authorize your users using email.
7 Replies
garyaustin
garyaustin•2y ago
There is no list anyone has found. And yes they are just text strings.
sheriffderek
sheriffderekOP•2y ago
Well, OK! Thanks. 🙂 Still digging around...
sheriffderek
sheriffderekOP•2y ago
No description
sheriffderek
sheriffderekOP•2y ago
No description
sheriffderek
sheriffderekOP•2y ago
Mysterious... error.name AuthApiError (not the specific error) error.status 400 But then just error... is AuthApiError: Email not confirmed or whatever the situation How does this work as both an object and also a string?
sheriffderek
sheriffderekOP•2y ago
No description
sheriffderek
sheriffderekOP•2y ago
OK OK. Still mysterious where the actual error string comes from...

Did you find this page helpful?