Skip to content

Commit

Permalink
Change default retries to 2 to match other SDKs (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisfisher authored Feb 13, 2025
1 parent 032512b commit be72892
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@authsignal/node",
"version": "2.1.1",
"version": "2.1.2",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/authsignal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {

export const DEFAULT_API_URL = "https://api.authsignal.com/v1";

const DEFAULT_RETRIES = 1;
const DEFAULT_RETRIES = 2;
const RETRY_ERROR_CODES = ["ECONNRESET", "EPIPE", "ECONNREFUSED"];
const SAFE_HTTP_METHODS = ["GET", "HEAD", "OPTIONS"];

Expand Down

0 comments on commit be72892

Please sign in to comment.