Skip to content

[firebase_auth] Make auth errors uniform and platform independent #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
NoamDev opened this issue Aug 25, 2019 · 4 comments
Closed

[firebase_auth] Make auth errors uniform and platform independent #24

NoamDev opened this issue Aug 25, 2019 · 4 comments
Labels
plugin: auth resolution: duplicate This issue or pull request already exists type: enhancement New feature or request

Comments

@NoamDev
Copy link
Contributor

NoamDev commented Aug 25, 2019

It's annoying that for every PlatformException being thrown from firebase auth I have to compare the code twice, once for android and once for ios.

Is it possible to use the same error code in all platforms?

@collinjackson
Copy link
Contributor

I agree that this would be a welcome improvement. I don't have the bandwidth to implement this in the short term but would be happy to review PRs.

@collinjackson collinjackson changed the title Make Firebase auth errors uniform and platform independent [firebase_auth] Make auth errors uniform and platform independent Aug 25, 2019
@NoamDev
Copy link
Contributor Author

NoamDev commented Aug 26, 2019

I've found a list of all error codes (https://docs.google.com/spreadsheets/d/1FDn0rRRYjgXMwc_FIAxO7_cQh69q5VXgQt7Hmvyb1Sg)
in this PR flutter/plugins#775.

@NoamDev
Copy link
Contributor Author

NoamDev commented Aug 26, 2019

I'm not sure if I can do that, but anyway, we should have a specification for it.
which error code and message do we want, the android or the ios version.

@BondarenkoStas BondarenkoStas added the type: enhancement New feature or request label Sep 23, 2019
@Salakar
Copy link
Member

Salakar commented Apr 21, 2020

Consolidating under #1456 - we'll be looking at parsing native error messages & codes and bubbling these up to the Dart layer in a consistent cross-platform format.

@Salakar Salakar closed this as completed Apr 21, 2020
@Salakar Salakar added plugin: auth resolution: duplicate This issue or pull request already exists labels Apr 21, 2020
@firebase firebase locked and limited conversation to collaborators Aug 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
plugin: auth resolution: duplicate This issue or pull request already exists type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants