Fix default retry limit description #1131
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
The
RetryConfiguration
interface previously mentioned a default of 3 retries for failing requests, while themaxRetries
property description stated a default of 5, creating a mismatch. To simplify maintenance, I removed the default value note from the interface so that the single source of truth is themaxRetries
description.I also corrected the
maxRetries
default value in its description to 3 (not 5), aligning it with theDEFAULT_NUMBER_RETRIES
constant: https://github.com/auth0/node-auth0/blob/v4.26.0/src/lib/retry.ts#L3