-
Notifications
You must be signed in to change notification settings - Fork 927
Add retry logic to app check #5676
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
Conversation
hsubox76
commented
Oct 28, 2021
- Block exchange requests for certain periods of time on certain error codes
- 400, 404: 1 day
- Other error codes: exponential backoff
- Fix bugs causing duplicate calls to listeners
- Do not make multiple requests to exchange endpoint if a request is already in flight
- Start a token listener when App Check is initialized to avoid extra wait time on first getToken() call
🦋 Changeset detectedLatest commit: 5e0d22b The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Binary Size ReportAffected SDKs
Test Logs |
a6be820
to
c954452
Compare
packages/app-check/src/providers.ts
Outdated
if (!this._app || !this._platformLoggerProvider) { | ||
// This should only occur if user has not called initializeAppCheck(). | ||
// We don't have an appName to provide if so. | ||
// This should already be caught in the top level `getToken()` function. | ||
throw ERROR_FACTORY.create(AppCheckError.USE_BEFORE_ACTIVATION, { | ||
appName: '' | ||
}); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we discussed it in another PR that we don't need this check and can assume the 2 properties are available.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, looks like it was merged with the recaptcha enterprise PR, I'll rebase. I also need to add all this functionality for recaptcha enterprise.
c395be3
to
7ca267e
Compare
Also rebased and added recaptcha enterprise changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If possible, please don't rebase PRs under review, use merge instead. Rebasing removes the ability for reviewers to only review the changes since their last review. and They have to review the entire PR to find the differences, which is painful.