Skip to content
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

support custom fingerprint generation #4

Open
mahendraHegde opened this issue Mar 13, 2024 · 0 comments
Open

support custom fingerprint generation #4

mahendraHegde opened this issue Mar 13, 2024 · 0 comments
Labels
core good first issue Good for newcomers help wanted Extra attention is needed

Comments

@mahendraHegde
Copy link
Owner

mahendraHegde commented Mar 13, 2024

currently fingerprint is generated based on body, it should be customisable.
current logic:

private getFingerPrint(
req: IdempotencyParamsWithDefaults,
): string | undefined {
return req.body ? this.hash(req.body) : undefined;
}

similar to skipRequest add an option to generate fingerprint and use the option or default(current approach) for fingerprint generation.

@mahendraHegde mahendraHegde added help wanted Extra attention is needed good first issue Good for newcomers core labels Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant