@things-factory/auth-base 7.0.1-beta.18 → 7.0.1-beta.22

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.
Files changed (43) hide show
  1. package/dist-client/tsconfig.tsbuildinfo +1 -1
  2. package/dist-server/tsconfig.tsbuildinfo +1 -1
  3. package/helps/config/SECRET.ja.md +13 -0
  4. package/helps/config/SECRET.ko.md +13 -0
  5. package/helps/config/SECRET.md +3 -3
  6. package/helps/config/SECRET.ms.md +13 -0
  7. package/helps/config/SECRET.zh.md +13 -0
  8. package/helps/config/accessTokenCookieKey.ja.md +11 -0
  9. package/helps/config/accessTokenCookieKey.ko.md +11 -0
  10. package/helps/config/accessTokenCookieKey.md +1 -1
  11. package/helps/config/accessTokenCookieKey.ms.md +11 -0
  12. package/helps/config/accessTokenCookieKey.zh.md +11 -0
  13. package/helps/config/applianceJwtExpiresIn.ja.md +26 -0
  14. package/helps/config/applianceJwtExpiresIn.ko.md +26 -0
  15. package/helps/config/applianceJwtExpiresIn.md +18 -15
  16. package/helps/config/applianceJwtExpiresIn.ms.md +30 -0
  17. package/helps/config/applianceJwtExpiresIn.zh.md +26 -0
  18. package/helps/config/disableUserSignupProcess.ja.md +22 -0
  19. package/helps/config/disableUserSignupProcess.ko.md +22 -0
  20. package/helps/config/disableUserSignupProcess.md +3 -3
  21. package/helps/config/disableUserSignupProcess.ms.md +22 -0
  22. package/helps/config/disableUserSignupProcess.zh.md +22 -0
  23. package/helps/config/i18n.ja.md +44 -0
  24. package/helps/config/i18n.ko.md +44 -0
  25. package/helps/config/i18n.md +6 -6
  26. package/helps/config/i18n.ms.md +44 -0
  27. package/helps/config/i18n.zh.md +44 -0
  28. package/helps/config/password.ja.md +53 -0
  29. package/helps/config/password.ko.md +65 -0
  30. package/helps/config/password.md +8 -36
  31. package/helps/config/password.ms.md +65 -0
  32. package/helps/config/password.zh.md +65 -0
  33. package/helps/config/publicHomeRoute.ja.md +14 -0
  34. package/helps/config/publicHomeRoute.ko.md +14 -0
  35. package/helps/config/publicHomeRoute.md +3 -3
  36. package/helps/config/publicHomeRoute.ms.md +14 -0
  37. package/helps/config/publicHomeRoute.zh.md +14 -0
  38. package/helps/config/session.ja.md +45 -0
  39. package/helps/config/session.ko.md +49 -0
  40. package/helps/config/session.md +10 -10
  41. package/helps/config/session.ms.md +46 -0
  42. package/helps/config/session.zh.md +49 -0
  43. package/package.json +4 -4
@@ -0,0 +1,65 @@
1
+ # password
2
+
3
+ 패스워드 설정 규칙을 유연하게 정의하고 이러한 규칙을 기반으로 패스워드를 유효성 검사할 수 있습니다.
4
+
5
+ 패스워드 규칙은 대/소문자, 숫자, 특수문자 및 길이와 같은 다양한 요소들을 조절할 수 있어 보안 정책에 맞게 패스워드 규칙을 커스터마이징할 수 있습니다.
6
+
7
+ - `lowerCase` (기본값: `true`):
8
+
9
+ - 소문자를 포함하는지 여부를 나타내는 부울 값입니다. 설정된 경우, 패스워드는 최소한 하나의 소문자를 포함해야 합니다.
10
+
11
+ - `upperCase` (기본값: `true`):
12
+
13
+ - 대문자를 포함하는지 여부를 나타내는 부울 값입니다. 설정된 경우, 패스워드는 최소한 하나의 대문자를 포함해야 합니다.
14
+
15
+ - `digit` (기본값: `true`):
16
+
17
+ - 숫자를 포함하는지 여부를 나타내는 부울 값입니다. 설정된 경우, 패스워드는 최소한 하나의 숫자를 포함해야 합니다.
18
+
19
+ - `specialCharacter` (기본값: `true`):
20
+
21
+ - 특수 문자를 포함하는지 여부를 나타내는 부울 값입니다. 설정된 경우, 패스워드는 최소한 하나의 특수 문자(!@#$%^&\*())를 포함해야 합니다.
22
+
23
+ - `allowRepeat` (기본값: `false`):
24
+
25
+ - 문자 반복을 허용하는지 여부를 나타내는 부울 값입니다. 설정된 경우, 패스워드에 문자가 두 번 이상 연속으로 반복되지 않아야 합니다.
26
+
27
+ - `useTightPattern` (기본값: `true`):
28
+
29
+ - 엄격한 패스워드 패턴을 사용할지 여부를 나타내는 부울 값입니다. 설정된 경우, 패스워드는 길이와 각 요소 (소문자, 대문자, 숫자, 특수 문자)에 대한 요구 사항을 엄격하게 따라야 합니다.
30
+
31
+ - `useLoosePattern` (기본값: `false`):
32
+
33
+ - 느슨한 패스워드 패턴을 사용할지 여부를 나타내는 부울 값입니다. 설정된 경우, 패스워드의 길이만 엄격하게 체크하고 다른 요소에 대한 요구 사항은 무시합니다.
34
+
35
+ - `tightCharacterLength` (기본값: `8`):
36
+
37
+ - 엄격한 패스워드 패턴을 사용할 경우, 패스워드의 최소 길이를 나타냅니다.
38
+
39
+ - `looseCharacterLength` (기본값: `15`):
40
+
41
+ - 느슨한 패스워드 패턴을 사용할 경우, 패스워드의 최소 길이를 나타냅니다.
42
+
43
+ - `defaultPassword` (기본값: false):
44
+ - 관리자가 사용자를 등록하는 경우, 새로운 사용자에게 설정되는 기본 패스워드이다.
45
+ - 이 값이 false 이면, 관리자가 사용자를 등록하는 기능은 사용할 수 없다.
46
+
47
+ ## default
48
+
49
+ ```
50
+ module.exports = {
51
+ password: {
52
+ lowerCase: true,
53
+ upperCase: false,
54
+ digit: true,
55
+ specialCharacter: true,
56
+ allowRepeat: true,
57
+ useTightPattern: true,
58
+ useLoosePattern: false,
59
+ tightCharacterLength: 8,
60
+ looseCharacterLength: 15,
61
+ history: 2,
62
+ defaultPassword: false
63
+ },
64
+ }
65
+ ```
@@ -1,48 +1,20 @@
1
1
  # password
2
2
 
3
- 패스워드 설정 규칙을 유연하게 정의하고 이러한 규칙을 기반으로 패스워드를 유효성 검사할 있습니다.
3
+ can flexibly define password setting rules and validate passwords based on these rules.
4
4
 
5
- 패스워드 규칙은 대/소문자, 숫자, 특수문자 길이와 같은 다양한 요소들을 조절할 있어 보안 정책에 맞게 패스워드 규칙을 커스터마이징할 있습니다.
5
+ password rules can adjust various elements such as case sensitivity, numbers, special characters, and length to customize password rules according to security policies.
6
6
 
7
- - `lowerCase` (기본값: `true`):
7
+ - `lowerCase` (default: `true`):
8
8
 
9
- - 소문자를 포함하는지 여부를 나타내는 부울 값입니다. 설정된 경우, 패스워드는 최소한 하나의 소문자를 포함해야 합니다.
9
+ - a boolean value indicating whether to include lowercase letters. if set, the password must contain at least one lowercase letter.
10
10
 
11
- - `upperCase` (기본값: `true`):
11
+ - `upperCase` (default: `true`):
12
12
 
13
- - 대문자를 포함하는지 여부를 나타내는 부울 값입니다. 설정된 경우, 패스워드는 최소한 하나의 대문자를 포함해야 합니다.
13
+ - a boolean value indicating whether to include uppercase letters. if set, the password must contain at least one uppercase letter.
14
14
 
15
- - `digit` (기본값: `true`):
15
+ - `digit` (default: `true`):
16
16
 
17
- - 숫자를 포함하는지 여부를 나타내는 부울 값입니다. 설정된 경우, 패스워드는 최소한 하나의 숫자를 포함해야 합니다.
18
-
19
- - `specialCharacter` (기본값: `true`):
20
-
21
- - 특수 문자를 포함하는지 여부를 나타내는 부울 값입니다. 설정된 경우, 패스워드는 최소한 하나의 특수 문자(!@#$%^&\*())를 포함해야 합니다.
22
-
23
- - `allowRepeat` (기본값: `false`):
24
-
25
- - 문자 반복을 허용하는지 여부를 나타내는 부울 값입니다. 설정된 경우, 패스워드에 문자가 두 번 이상 연속으로 반복되지 않아야 합니다.
26
-
27
- - `useTightPattern` (기본값: `true`):
28
-
29
- - 엄격한 패스워드 패턴을 사용할지 여부를 나타내는 부울 값입니다. 설정된 경우, 패스워드는 길이와 각 요소 (소문자, 대문자, 숫자, 특수 문자)에 대한 요구 사항을 엄격하게 따라야 합니다.
30
-
31
- - `useLoosePattern` (기본값: `false`):
32
-
33
- - 느슨한 패스워드 패턴을 사용할지 여부를 나타내는 부울 값입니다. 설정된 경우, 패스워드의 길이만 엄격하게 체크하고 다른 요소에 대한 요구 사항은 무시합니다.
34
-
35
- - `tightCharacterLength` (기본값: `8`):
36
-
37
- - 엄격한 패스워드 패턴을 사용할 경우, 패스워드의 최소 길이를 나타냅니다.
38
-
39
- - `looseCharacterLength` (기본값: `15`):
40
-
41
- - 느슨한 패스워드 패턴을 사용할 경우, 패스워드의 최소 길이를 나타냅니다.
42
-
43
- - `defaultPassword` (기본값: false):
44
- - 관리자가 사용자를 등록하는 경우, 새로운 사용자에게 설정되는 기본 패스워드이다.
45
- - 이 값이 false 이면, 관리자가 사용자를 등록하는 기능은 사용할 수 없다.
17
+ - a boolean value indicating whether
46
18
 
47
19
  ## default
48
20
 
@@ -0,0 +1,65 @@
1
+ # password
2
+
3
+ boleh menentukan peraturan tetapan kata laluan dengan fleksibel dan mengesahkan kata laluan berdasarkan peraturan ini.
4
+
5
+ peraturan kata laluan boleh melaraskan pelbagai elemen seperti huruf besar/kecil, nombor, aksara khas, dan panjang untuk menyesuaikan peraturan kata laluan dengan dasar keselamatan.
6
+
7
+ - `lowerCase` (nilai lalai: `true`):
8
+
9
+ - nilai boolean yang menunjukkan sama ada mengandungi huruf kecil. Jika ditetapkan, kata laluan mesti mengandungi sekurang-kurangnya satu huruf kecil.
10
+
11
+ - `upperCase` (nilai lalai: `true`):
12
+
13
+ - nilai boolean yang menunjukkan sama ada mengandungi huruf besar. Jika ditetapkan, kata laluan mesti mengandungi sekurang-kurangnya satu huruf besar.
14
+
15
+ - `digit` (nilai lalai: `true`):
16
+
17
+ - nilai boolean yang menunjukkan sama ada mengandungi nombor. Jika ditetapkan, kata laluan mesti mengandungi sekurang-kurangnya satu nombor.
18
+
19
+ - `specialCharacter` (nilai lalai: `true`):
20
+
21
+ - nilai boolean yang menunjukkan sama ada mengandungi aksara khas. Jika ditetapkan, kata laluan mesti mengandungi sekurang-kurangnya satu aksara khas (!@#$%^&\*()).
22
+
23
+ - `allowRepeat` (nilai lalai: `false`):
24
+
25
+ - nilai boolean yang menunjukkan sama ada membenarkan pengulangan aksara. Jika ditetapkan, kata laluan tidak boleh mengandungi aksara yang diulang lebih daripada dua kali berturut-turut.
26
+
27
+ - `useTightPattern` (nilai lalai: `true`):
28
+
29
+ - nilai boolean yang menunjukkan sama ada menggunakan pola kata laluan yang ketat. Jika ditetapkan, kata laluan mesti memenuhi keperluan panjang dan setiap elemen (huruf kecil, huruf besar, nombor, aksara khas) dengan ketat.
30
+
31
+ - `useLoosePattern` (nilai lalai: `false`):
32
+
33
+ - nilai boolean yang menunjukkan sama ada menggunakan pola kata laluan yang longgar. Jika ditetapkan, hanya panjang kata laluan diperiksa dengan ketat dan keperluan elemen lain diabaikan.
34
+
35
+ - `tightCharacterLength` (nilai lalai: `8`):
36
+
37
+ - panjang minimum kata laluan apabila menggunakan pola kata laluan yang ketat.
38
+
39
+ - `looseCharacterLength` (nilai lalai: `15`):
40
+
41
+ - panjang minimum kata laluan apabila menggunakan pola kata laluan yang longgar.
42
+
43
+ - `defaultPassword` (nilai lalai: false):
44
+ - kata laluan lalai yang ditetapkan kepada pengguna baru apabila pentadbir mendaftarkan pengguna.
45
+ - jika nilai ini adalah false, pentadbir tidak boleh menggunakan fungsi pendaftaran pengguna.
46
+
47
+ ## default
48
+
49
+ ```
50
+ module.exports = {
51
+ password: {
52
+ lowerCase: true,
53
+ upperCase: false,
54
+ digit: true,
55
+ specialCharacter: true,
56
+ allowRepeat: true,
57
+ useTightPattern: true,
58
+ useLoosePattern: false,
59
+ tightCharacterLength: 8,
60
+ looseCharacterLength: 15,
61
+ history: 2,
62
+ defaultPassword: false
63
+ },
64
+ }
65
+ ```
@@ -0,0 +1,65 @@
1
+ # password
2
+
3
+ 可以灵活定义密码设置规则,并基于这些规则验证密码的有效性。
4
+
5
+ 密码规则可以调整大小写字母、数字、特殊字符和长度等各种元素,以便根据安全策略自定义密码规则。
6
+
7
+ - `lowerCase` (默认值: `true`):
8
+
9
+ - 布尔值,指示是否包含小写字母。如果设置,密码必须至少包含一个小写字母。
10
+
11
+ - `upperCase` (默认值: `true`):
12
+
13
+ - 布尔值,指示是否包含大写字母。如果设置,密码必须至少包含一个大写字母。
14
+
15
+ - `digit` (默认值: `true`):
16
+
17
+ - 布尔值,指示是否包含数字。如果设置,密码必须至少包含一个数字。
18
+
19
+ - `specialCharacter` (默认值: `true`):
20
+
21
+ - 布尔值,指示是否包含特殊字符。如果设置,密码必须至少包含一个特殊字符(!@#$%^&\*())。
22
+
23
+ - `allowRepeat` (默认值: `false`):
24
+
25
+ - 布尔值,指示是否允许字符重复。如果设置,密码中字符不得连续重复两次以上。
26
+
27
+ - `useTightPattern` (默认值: `true`):
28
+
29
+ - 布尔值,指示是否使用严格的密码模式。如果设置,密码必须严格遵循长度和各个元素(小写字母、大写字母、数字、特殊字符)的要求。
30
+
31
+ - `useLoosePattern` (默认值: `false`):
32
+
33
+ - 布尔值,指示是否使用宽松的密码模式。如果设置,密码只严格检查长度,忽略其他元素的要求。
34
+
35
+ - `tightCharacterLength` (默认值: `8`):
36
+
37
+ - 使用严格密码模式时,密码的最小长度。
38
+
39
+ - `looseCharacterLength` (默认值: `15`):
40
+
41
+ - 使用宽松密码模式时,密码的最小长度。
42
+
43
+ - `defaultPassword` (默认值: false):
44
+ - 管理员注册用户时,设置给新用户的默认密码。
45
+ - 如果此值为false,则管理员无法使用用户注册功能。
46
+
47
+ ## default
48
+
49
+ ```
50
+ module.exports = {
51
+ password: {
52
+ lowerCase: true,
53
+ upperCase: false,
54
+ digit: true,
55
+ specialCharacter: true,
56
+ allowRepeat: true,
57
+ useTightPattern: true,
58
+ useLoosePattern: false,
59
+ tightCharacterLength: 8,
60
+ looseCharacterLength: 15,
61
+ history: 2,
62
+ defaultPassword: false
63
+ },
64
+ }
65
+ ```
@@ -0,0 +1,14 @@
1
+ # publicHomeRoute
2
+
3
+ ログインしていないユーザーがアプリケーションURLに初めてアクセスしたときに表示されるページのパスを指定します。
4
+
5
+ 通常は '/public/home' パスにルーティングされ、イントロ画面が表示されます。
6
+ ログインページに直接移動したい場合は、この設定を '/auth/signin' に設定します。
7
+
8
+ ## default
9
+
10
+ ```
11
+ module.exports = {
12
+ publicHomeRoute: '/public/home',
13
+ }
14
+ ```
@@ -0,0 +1,14 @@
1
+ # publicHomeRoute
2
+
3
+ 로그인되지 않은 사용자가 어플리케이션 URL에 처음 접근했을 때, 보여지게 될 페이지의 path를 지정한다.
4
+
5
+ 보통 '/public/home' 패스로 라우팅되어 인트로 화면을 볼 수 있다.
6
+ 만약, 로그인 페이지로 바로 이동하고 싶다면, 이 설정을 '/auth/signin' 으로 설정하면 된다.
7
+
8
+ ## default
9
+
10
+ ```
11
+ module.exports = {
12
+ publicHomeRoute: '/public/home',
13
+ }
14
+ ```
@@ -1,9 +1,9 @@
1
1
  # publicHomeRoute
2
2
 
3
- 로그인되지 않은 사용자가 어플리케이션 URL에 처음 접근했을 때, 보여지게 페이지의 path를 지정한다.
3
+ specifies the path of the page to be displayed when a user who is not logged in first accesses the application URL.
4
4
 
5
- 보통 '/public/home' 패스로 라우팅되어 인트로 화면을 수 있다.
6
- 만약, 로그인 페이지로 바로 이동하고 싶다면, 설정을 '/auth/signin' 으로 설정하면 된다.
5
+ usually routed to the '/public/home' path to display the intro screen.
6
+ if you want to go directly to the login page, set this to '/auth/signin'.
7
7
 
8
8
  ## default
9
9
 
@@ -0,0 +1,14 @@
1
+ # publicHomeRoute
2
+
3
+ menentukan laluan halaman yang akan dipaparkan apabila pengguna yang belum log masuk mengakses URL aplikasi buat kali pertama.
4
+
5
+ biasanya akan dilalukan ke laluan '/public/home' untuk memaparkan skrin pengenalan.
6
+ jika ingin terus ke halaman log masuk, tetapkan ini ke '/auth/signin'.
7
+
8
+ ## default
9
+
10
+ ```
11
+ module.exports = {
12
+ publicHomeRoute: '/public/home',
13
+ }
14
+ ```
@@ -0,0 +1,14 @@
1
+ # publicHomeRoute
2
+
3
+ 指定未登录用户首次访问应用程序URL时显示的页面路径。
4
+
5
+ 通常会路由到 '/public/home' 路径,以显示介绍页面。
6
+ 如果希望直接跳转到登录页面,可以将此设置为 '/auth/signin'。
7
+
8
+ ## default
9
+
10
+ ```
11
+ module.exports = {
12
+ publicHomeRoute: '/public/home',
13
+ }
14
+ ```
@@ -0,0 +1,45 @@
1
+ # session
2
+
3
+ セッション有効期間に関する設定を行うことができます。
4
+
5
+ - expirySeconds: セッション有効時間(秒単位)
6
+
7
+ - この値は、ユーザーセッションが非アクティブの後に何秒で期限切れになるかを定義します。
8
+ - これを1800に設定すると、30分の非アクティブ後にセッションが期限切れになります。
9
+
10
+ - expiryPolicy: セッション有効期限ポリシー
11
+
12
+ - この設定は、セッションのタイムアウトをどのように管理するかを決定します。
13
+ - オプション:
14
+
15
+ - 'rolling' - セッションのタイムアウトはユーザーのアクティビティに基づいて延長されます。
16
+ 各新しいリクエストは、タイマーを指定されたタイムアウト期間にリセットします。
17
+ - 'fixed' - セッションのタイムアウトは固定されて
18
+
19
+ ## default
20
+
21
+ ```
22
+ module.exports = {
23
+ session: {
24
+ /*
25
+ Session Expiry Time in Seconds
26
+ This value defines the duration in seconds after which a user session will expire due to inactivity.
27
+ Setting this to 1800 means the session will expire after 30 minutes of inactivity.
28
+ */
29
+ expirySeconds: 60 * 60 * 24 * 7,
30
+ /*
31
+ Session Expiry Policy
32
+ This setting determines how the session timeout is managed.
33
+ Options:
34
+ 'rolling' - The session timeout is extended based on user activity.
35
+ Each new request resets the timer to the specified timeout duration.
36
+ 'fixed' - The session timeout is fixed and based on the initial login time.
37
+ The session will expire after the specified duration, regardless of user activity.
38
+
39
+ Example:
40
+ expiryPolicy: 'rolling' or 'fixed'
41
+ */
42
+ expiryPolicy: 'fixed'
43
+ },
44
+ }
45
+ ```
@@ -0,0 +1,49 @@
1
+ # session
2
+
3
+ 세션 유효기간과 관련한 설정을 할 수 있다.
4
+
5
+ - expirySeconds: Session Expiry Time in Seconds
6
+
7
+ - This value defines the duration in seconds after which a user session will expire due to inactivity.
8
+ - Setting this to 1800 means the session will expire after 30 minutes of inactivity.
9
+
10
+ - expiryPolicy: Session Expiry Policy
11
+
12
+ - This setting determines how the session timeout is managed.
13
+ - Options:
14
+
15
+ - 'rolling' - The session timeout is extended based on user activity.
16
+ Each new request resets the timer to the specified timeout duration.
17
+ - 'fixed' - The session timeout is fixed and based on the initial login time.
18
+ The session will expire after the specified duration, regardless of user activity.
19
+
20
+ Example:
21
+ expiryPolicy: 'rolling' or 'fixed'
22
+
23
+ ## default
24
+
25
+ ```
26
+ module.exports = {
27
+ session: {
28
+ /*
29
+ Session Expiry Time in Seconds
30
+ This value defines the duration in seconds after which a user session will expire due to inactivity.
31
+ Setting this to 1800 means the session will expire after 30 minutes of inactivity.
32
+ */
33
+ expirySeconds: 60 * 60 * 24 * 7,
34
+ /*
35
+ Session Expiry Policy
36
+ This setting determines how the session timeout is managed.
37
+ Options:
38
+ 'rolling' - The session timeout is extended based on user activity.
39
+ Each new request resets the timer to the specified timeout duration.
40
+ 'fixed' - The session timeout is fixed and based on the initial login time.
41
+ The session will expire after the specified duration, regardless of user activity.
42
+
43
+ Example:
44
+ expiryPolicy: 'rolling' or 'fixed'
45
+ */
46
+ expiryPolicy: 'fixed'
47
+ },
48
+ }
49
+ ```
@@ -1,23 +1,23 @@
1
1
  # session
2
2
 
3
- 세션 유효기간과 관련한 설정을 있다.
3
+ you can set the session expiration settings.
4
4
 
5
5
  - expirySeconds: Session Expiry Time in Seconds
6
6
 
7
- - This value defines the duration in seconds after which a user session will expire due to inactivity.
8
- - Setting this to 1800 means the session will expire after 30 minutes of inactivity.
7
+ - this value defines the duration in seconds after which a user session will expire due to inactivity.
8
+ - setting this to 1800 means the session will expire after 30 minutes of inactivity.
9
9
 
10
10
  - expiryPolicy: Session Expiry Policy
11
11
 
12
- - This setting determines how the session timeout is managed.
13
- - Options:
12
+ - this setting determines how the session timeout is managed.
13
+ - options:
14
14
 
15
- - 'rolling' - The session timeout is extended based on user activity.
16
- Each new request resets the timer to the specified timeout duration.
17
- - 'fixed' - The session timeout is fixed and based on the initial login time.
18
- The session will expire after the specified duration, regardless of user activity.
15
+ - 'rolling' - the session timeout is extended based on user activity.
16
+ each new request resets the timer to the specified timeout duration.
17
+ - 'fixed' - the session timeout is fixed and based on the initial login time.
18
+ the session will expire after the specified duration, regardless of user activity.
19
19
 
20
- Example:
20
+ example:
21
21
  expiryPolicy: 'rolling' or 'fixed'
22
22
 
23
23
  ## default
@@ -0,0 +1,46 @@
1
+ # session
2
+
3
+ boleh menetapkan tetapan berkaitan tempoh sah sesi.
4
+
5
+ - expirySeconds: Masa Tamat Sesi dalam Detik
6
+
7
+ - nilai ini menentukan tempoh dalam detik selepas mana sesi pengguna akan tamat akibat ketidakaktifan.
8
+ - menetapkan ini kepada 1800 bermaksud sesi akan tamat selepas 30 minit ketidakaktifan.
9
+
10
+ - expiryPolicy: Polisi Tamat Sesi
11
+
12
+ - tetapan ini menentukan bagaimana masa tamat sesi diuruskan.
13
+ - pilihan:
14
+
15
+ - 'rolling' - masa tamat sesi dilanjutkan berdasarkan aktiviti pengguna.
16
+ setiap permintaan baru menetapkan semula pemasa kepada tempoh tamat yang ditentukan.
17
+ - 'fixed' - masa tamat sesi adalah tetap dan berdasarkan masa log masuk awal.
18
+ sesi akan tamat selepas tempoh yang dit
19
+
20
+ ## default
21
+
22
+ ```
23
+ module.exports = {
24
+ session: {
25
+ /*
26
+ Session Expiry Time in Seconds
27
+ This value defines the duration in seconds after which a user session will expire due to inactivity.
28
+ Setting this to 1800 means the session will expire after 30 minutes of inactivity.
29
+ */
30
+ expirySeconds: 60 * 60 * 24 * 7,
31
+ /*
32
+ Session Expiry Policy
33
+ This setting determines how the session timeout is managed.
34
+ Options:
35
+ 'rolling' - The session timeout is extended based on user activity.
36
+ Each new request resets the timer to the specified timeout duration.
37
+ 'fixed' - The session timeout is fixed and based on the initial login time.
38
+ The session will expire after the specified duration, regardless of user activity.
39
+
40
+ Example:
41
+ expiryPolicy: 'rolling' or 'fixed'
42
+ */
43
+ expiryPolicy: 'fixed'
44
+ },
45
+ }
46
+ ```
@@ -0,0 +1,49 @@
1
+ # session
2
+
3
+ 可以设置与会话有效期相关的设置。
4
+
5
+ - expirySeconds: Session Expiry Time in Seconds
6
+
7
+ - 此值定义由于不活动,用户会话将在多少秒后过期。
8
+ - 将此值设置为1800意味着会话将在30分钟不活动后过期。
9
+
10
+ - expiryPolicy: Session Expiry Policy
11
+
12
+ - 此设置确定如何管理会话超时。
13
+ - 选项:
14
+
15
+ - 'rolling' - 会话超时基于用户活动延长。
16
+ 每个新请求将计时器重置为指定的超时持续时间。
17
+ - 'fixed' - 会话超时是固定的,基于初始登录时间。
18
+ 无论用户活动如何,会话将在指定的持续时间后过期。
19
+
20
+ 例子:
21
+ expiryPolicy: 'rolling' or 'fixed'
22
+
23
+ ## default
24
+
25
+ ```
26
+ module.exports = {
27
+ session: {
28
+ /*
29
+ Session Expiry Time in Seconds
30
+ This value defines the duration in seconds after which a user session will expire due to inactivity.
31
+ Setting this to 1800 means the session will expire after 30 minutes of inactivity.
32
+ */
33
+ expirySeconds: 60 * 60 * 24 * 7,
34
+ /*
35
+ Session Expiry Policy
36
+ This setting determines how the session timeout is managed.
37
+ Options:
38
+ 'rolling' - The session timeout is extended based on user activity.
39
+ Each new request resets the timer to the specified timeout duration.
40
+ 'fixed' - The session timeout is fixed and based on the initial login time.
41
+ The session will expire after the specified duration, regardless of user activity.
42
+
43
+ Example:
44
+ expiryPolicy: 'rolling' or 'fixed'
45
+ */
46
+ expiryPolicy: 'fixed'
47
+ },
48
+ }
49
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/auth-base",
3
- "version": "7.0.1-beta.18",
3
+ "version": "7.0.1-beta.22",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -30,9 +30,9 @@
30
30
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
31
31
  },
32
32
  "dependencies": {
33
- "@things-factory/email-base": "^7.0.1-beta.18",
33
+ "@things-factory/email-base": "^7.0.1-beta.22",
34
34
  "@things-factory/env": "^7.0.1-beta.18",
35
- "@things-factory/shell": "^7.0.1-beta.18",
35
+ "@things-factory/shell": "^7.0.1-beta.22",
36
36
  "@things-factory/utils": "^7.0.1-beta.10",
37
37
  "@types/webappsec-credential-management": "^0.6.8",
38
38
  "jsonwebtoken": "^9.0.0",
@@ -45,5 +45,5 @@
45
45
  "passport-local": "^1.0.0",
46
46
  "popsicle-cookie-jar": "^1.0.0"
47
47
  },
48
- "gitHead": "44f0df6a133577bad8d184a529796c69249a8296"
48
+ "gitHead": "60c6bc4d55359465636a549687fc3e3f03d44a18"
49
49
  }