express-sweet 1.0.43 → 1.0.44
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/CHANGELOG.md +25 -3
- package/README.md +2 -3
- package/dist/build.common.js +2 -2
- package/dist/build.esm.js +2 -2
- package/docs/src/authentication-overview.hbs +14 -0
- package/docs/v1/authentication-overview.html +14 -0
- package/docs/v1/download/templates/cjs/authentication.js +14 -0
- package/docs/v1/download/templates/esm/authentication.js +14 -0
- package/package.json +2 -3
- package/types/interfaces/AuthenticationConfig.d.ts +12 -0
- package/hero.svg +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,29 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
|
-
## [1.0.
|
|
5
|
-
###
|
|
4
|
+
## [1.0.44] - 2023/12/30
|
|
5
|
+
### Changed
|
|
6
|
+
- The `Secure` and `HttpOnly` attributes of the session cookie can now be set from the authentication configuration file (`config/authentication.js`).
|
|
7
|
+
|
|
8
|
+
config/authentication.js:
|
|
9
|
+
```js
|
|
10
|
+
/**
|
|
11
|
+
* Specifies the boolean value for the Secure Set-Cookie attribute.
|
|
12
|
+
* The default is true, which sets the Secure attribute on the cookie.
|
|
13
|
+
* @type {boolean|undefined}
|
|
14
|
+
*/
|
|
15
|
+
cookie_secure: false,
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Specifies the boolean value for the HttpOnly Set-Cookie attribute.
|
|
19
|
+
* Defaults to true, which sets the HttpOnly attribute on the cookie.
|
|
20
|
+
* @type {boolean|undefined}
|
|
21
|
+
*/
|
|
22
|
+
cookie_httpOnly: true,
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## [1.0.43] - 2023/12/30
|
|
26
|
+
### Changed
|
|
6
27
|
- The cookie name for storing session IDs can now be set in the `cookie_name` field of the authentication configuration file (`config/authentication.js`).
|
|
7
28
|
|
|
8
29
|
config/authentication.js:
|
|
@@ -788,4 +809,5 @@ All notable changes to this project will be documented in this file.
|
|
|
788
809
|
[1.0.40]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.39...v1.0.40
|
|
789
810
|
[1.0.41]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.40...v1.0.41
|
|
790
811
|
[1.0.42]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.41...v1.0.42
|
|
791
|
-
[1.0.43]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.42...v1.0.43
|
|
812
|
+
[1.0.43]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.42...v1.0.43
|
|
813
|
+
[1.0.44]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.43...v1.0.44
|
package/README.md
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Express framework extension.
|
|
1
|
+
# EXPRESS SWEET
|
|
2
|
+
This is an extension of Express.
|
|
4
3
|
|
|
5
4
|
## Documentation
|
|
6
5
|
* [Express Sweet Documentation](https://takuya-motoshima.github.io/express-sweet/v1/)
|