Skip to content

[v3] Standardised authentication errors #86

Open
@SamMatthewsIsACommonName

Description

Right now the authentication error objects returned sometimes have a 'name' property with what is essentially the error code, and sometimes a 'code' property. This makes switching over the error in a reducer quite complicated as they're not consistent e.g 'action.payload.name' vs 'action.payload.code'.
Also it seems as though firebase are moving towards descriptive text errors as the 'code' rather than the old numerical codes:
https://firebase.google.com/docs/reference/js/firebase.auth.Error
So getting these in line would be really good for reference purposes.
Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions