Skip to content

Conversation

@hiranya911
Copy link
Contributor

No description provided.

"https://identitytoolkit.googleapis.com/google.identity.identitytoolkit.v1.IdentityToolkit";
private static final String ERROR_CODE = "ERROR_INVALID_CREDENTIAL";
private static final String ERROR_INVALID_CREDENTIAL = "ERROR_INVALID_CREDENTIAL";
private static final String ERROR_RUNTIME_EXCEPTION = "ERROR_RUNTIME_EXCEPTION";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there more of these? Should they all be defined in a single place?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are few more in FirebaseUserManager. I don't feel like there's enough of them to start extracting them into one place. WDYT? Perhaps introduce a new internal.Constants class, which would hold all shared constants?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think in general it's useful to centralize error codes, for auditing and documentation purposes and whatnot. But I don't feel strongly that that needs to happen in this PR. So feel free to just consider it for the future.

@mikelehen mikelehen assigned hiranya911 and unassigned mikelehen Sep 6, 2017
@hiranya911 hiranya911 merged commit 1f72249 into master Sep 6, 2017
@hiranya911 hiranya911 deleted the hkj-auth-error branch September 6, 2017 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants