sofi-csrf 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/core/options.js +1 -1
- package/dist/core/options.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -117,7 +117,7 @@ Below is the exhaustive list of options you can configure:
|
|
|
117
117
|
| `cookieName` | `string` | `'csrfToken'` | The name of the cookie where the generated token is stored. |
|
|
118
118
|
| `tokenLength` | `number` | `24` | Cryptographic byte length for generation (produces a 48 hexadecimal character string). |
|
|
119
119
|
| `cookieOptions.httpOnly` | `boolean` | `true` | Prevents client-side scripts from accessing the cookie via `document.cookie`. |
|
|
120
|
-
| `cookieOptions.secure` | `boolean` | `
|
|
120
|
+
| `cookieOptions.secure` | `boolean` | `false` | Whether to ensure the cookie is only sent over HTTPS (Highly recommended to set to `true` in production). |
|
|
121
121
|
| `cookieOptions.maxAge` | `number` | `3600000` (1 hour) | Expiration time for the cookie in milliseconds. |
|
|
122
122
|
|
|
123
123
|
---
|
package/dist/core/options.js
CHANGED
package/dist/core/options.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../src/core/options.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACU,QAAA,cAAc,GAAgB;IACzC,UAAU,EAAE,WAAW;IACvB,aAAa,EAAE;QACb,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../src/core/options.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACU,QAAA,cAAc,GAAgB;IACzC,UAAU,EAAE,WAAW;IACvB,aAAa,EAAE;QACb,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,OAAO;KAChB;IACD,WAAW,EAAE,EAAE;CAChB,CAAC"}
|