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.