@digitaldefiance/express-suite-starter 4.25.7 → 4.27.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digitaldefiance/express-suite-starter",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.27.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"bin": {
|
|
6
6
|
"create-express-suite": "./dist/src/cli.js"
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"@types/validator": "^13.15.0",
|
|
52
52
|
"jest": "^29.7.0",
|
|
53
53
|
"nx": "22.0.2",
|
|
54
|
+
"otplib": "13.4.0",
|
|
54
55
|
"plop": "^4.0.1",
|
|
55
56
|
"prettier": "^3.5.3",
|
|
56
57
|
"ts-jest": "^29.1.0",
|
|
@@ -20,6 +20,7 @@ JWT_SECRET={{jwtSecret}}
|
|
|
20
20
|
# Dist directories
|
|
21
21
|
API_DIST_DIR=/workspaces/{{workspaceName}}/dist/{{prefix}}-api
|
|
22
22
|
REACT_DIST_DIR=/workspaces/{{workspaceName}}/dist/{{prefix}}-react
|
|
23
|
+
TOTP_AVAILABLE=true
|
|
23
24
|
DEBUG=true
|
|
24
25
|
DETAILED_DEBUG=true
|
|
25
26
|
EMAIL_SERVICE=fake
|
|
@@ -14,6 +14,7 @@ JWT_SECRET={{jwtSecret}}
|
|
|
14
14
|
# /workspaces presumes .devcontainer setup, change as needed
|
|
15
15
|
API_DIST_DIR=/workspaces/{{workspaceName}}/dist/{{prefix}}-api
|
|
16
16
|
REACT_DIST_DIR=/workspaces/{{workspaceName}}/dist/{{prefix}}-react
|
|
17
|
+
TOTP_AVAILABLE=true
|
|
17
18
|
DEBUG=true
|
|
18
19
|
DETAILED_DEBUG=true
|
|
19
20
|
EMAIL_SERVICE=fake
|
|
@@ -26,7 +26,19 @@ const getApiBaseUrl = () => {
|
|
|
26
26
|
return environment.apiUrl;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
+
const getEmailDomain = () => {
|
|
30
|
+
if (
|
|
31
|
+
typeof window !== 'undefined' &&
|
|
32
|
+
(window as any).APP_CONFIG &&
|
|
33
|
+
(window as any).APP_CONFIG.emailDomain
|
|
34
|
+
) {
|
|
35
|
+
return (window as any).APP_CONFIG.emailDomain;
|
|
36
|
+
}
|
|
37
|
+
return environment.emailDomain;
|
|
38
|
+
};
|
|
39
|
+
|
|
29
40
|
const API_BASE_URL = getApiBaseUrl();
|
|
41
|
+
const EMAIL_DOMAIN = getEmailDomain();
|
|
30
42
|
|
|
31
43
|
const AuthProviderWithNavigation: FC<{ children: React.ReactNode }> = ({
|
|
32
44
|
children,
|
|
@@ -52,6 +64,7 @@ const AuthProviderWithNavigation: FC<{ children: React.ReactNode }> = ({
|
|
|
52
64
|
<AuthProvider
|
|
53
65
|
baseUrl={API_BASE_URL}
|
|
54
66
|
constants={AppConstants}
|
|
67
|
+
emailDomain={EMAIL_DOMAIN}
|
|
55
68
|
eciesConfig={EciesConfig}
|
|
56
69
|
onLogout={handleLogout}
|
|
57
70
|
>
|