@breadstone/archipel-platform-authentication 0.0.22 → 0.0.23
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 +3 -3
- package/package.json +6 -6
- package/src/contracts/IMfaSubjectUpdate.d.ts +1 -1
- package/src/env.js +4 -4
package/README.md
CHANGED
|
@@ -35,9 +35,9 @@ import { AuthModule } from '@breadstone/archipel-platform-authentication';
|
|
|
35
35
|
mfaSubject: PrismaMfaSubjectAdapter,
|
|
36
36
|
sessionPersistence: PrismaSessionAdapter,
|
|
37
37
|
verificationSubject: PrismaVerificationAdapter,
|
|
38
|
-
challengeStore: RedisChallengeStore, // optional
|
|
39
|
-
socialAuth: PrismaSocialAuthAdapter, // optional
|
|
40
|
-
tokenEnricher: AppTokenEnricherAdapter, // optional
|
|
38
|
+
challengeStore: RedisChallengeStore, // optional - defaults to in-memory
|
|
39
|
+
socialAuth: PrismaSocialAuthAdapter, // optional - enables OAuth
|
|
40
|
+
tokenEnricher: AppTokenEnricherAdapter, // optional - enriches JWT claims
|
|
41
41
|
}),
|
|
42
42
|
],
|
|
43
43
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@breadstone/archipel-platform-authentication",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.23",
|
|
4
4
|
"description": "JWT and OAuth authentication, MFA, session management, and email verification for NestJS applications.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -81,11 +81,11 @@
|
|
|
81
81
|
"README.md"
|
|
82
82
|
],
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"@breadstone/archipel-platform-configuration": "0.0.
|
|
85
|
-
"@breadstone/archipel-platform-core": "0.0.
|
|
86
|
-
"@breadstone/archipel-platform-cryptography": "0.0.
|
|
87
|
-
"@breadstone/archipel-platform-mapping": "0.0.
|
|
88
|
-
"@breadstone/archipel-platform-resources": "0.0.
|
|
84
|
+
"@breadstone/archipel-platform-configuration": "0.0.23",
|
|
85
|
+
"@breadstone/archipel-platform-core": "0.0.23",
|
|
86
|
+
"@breadstone/archipel-platform-cryptography": "0.0.23",
|
|
87
|
+
"@breadstone/archipel-platform-mapping": "0.0.23",
|
|
88
|
+
"@breadstone/archipel-platform-resources": "0.0.23",
|
|
89
89
|
"tslib": "2.8.1"
|
|
90
90
|
},
|
|
91
91
|
"peerDependencies": {
|
package/src/env.js
CHANGED
|
@@ -112,7 +112,7 @@ exports.PLATFORM_AUTHENTICATION_CONFIG_ENTRIES = [
|
|
|
112
112
|
required: true,
|
|
113
113
|
description: 'Lifetime of email-verification JWTs.',
|
|
114
114
|
},
|
|
115
|
-
// MFA
|
|
115
|
+
// MFA - General
|
|
116
116
|
{
|
|
117
117
|
key: exports.AUTH_MFA_ENCRYPTION_KEY,
|
|
118
118
|
required: true,
|
|
@@ -135,7 +135,7 @@ exports.PLATFORM_AUTHENTICATION_CONFIG_ENTRIES = [
|
|
|
135
135
|
required: true,
|
|
136
136
|
description: 'Issuer name shown in authenticator apps for TOTP MFA.',
|
|
137
137
|
},
|
|
138
|
-
// MFA
|
|
138
|
+
// MFA - SMS
|
|
139
139
|
{
|
|
140
140
|
key: exports.AUTH_MFA_SMS_CODE_TTL,
|
|
141
141
|
required: false,
|
|
@@ -148,7 +148,7 @@ exports.PLATFORM_AUTHENTICATION_CONFIG_ENTRIES = [
|
|
|
148
148
|
defaultValue: '30s',
|
|
149
149
|
description: 'Min interval between SMS resends.',
|
|
150
150
|
},
|
|
151
|
-
// MFA
|
|
151
|
+
// MFA - Email
|
|
152
152
|
{
|
|
153
153
|
key: exports.AUTH_MFA_EMAIL_CODE_TTL,
|
|
154
154
|
required: false,
|
|
@@ -161,7 +161,7 @@ exports.PLATFORM_AUTHENTICATION_CONFIG_ENTRIES = [
|
|
|
161
161
|
defaultValue: '30s',
|
|
162
162
|
description: 'Min interval between email resends.',
|
|
163
163
|
},
|
|
164
|
-
// MFA
|
|
164
|
+
// MFA - Push
|
|
165
165
|
{
|
|
166
166
|
key: exports.AUTH_MFA_PUSH_CODE_TTL,
|
|
167
167
|
required: false,
|