create-z3 0.0.21 → 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/dist/index.js
CHANGED
|
@@ -1796,11 +1796,9 @@ function generateCredentialsValue(enabled) {
|
|
|
1796
1796
|
}
|
|
1797
1797
|
function generateAuthProvidersBlock(oauthProviders, emailPasswordEnabled) {
|
|
1798
1798
|
const parts = [];
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
enabled: true
|
|
1799
|
+
parts.push(`emailAndPassword: {
|
|
1800
|
+
enabled: ${emailPasswordEnabled}
|
|
1802
1801
|
},`);
|
|
1803
|
-
}
|
|
1804
1802
|
if (oauthProviders.length > 0) {
|
|
1805
1803
|
const providersObject = oauthProviders.map((providerId) => {
|
|
1806
1804
|
const provider = getProvider(providerId);
|
|
@@ -1808,11 +1806,11 @@ function generateAuthProvidersBlock(oauthProviders, emailPasswordEnabled) {
|
|
|
1808
1806
|
throw new Error(`Unknown OAuth provider: ${providerId}`);
|
|
1809
1807
|
}
|
|
1810
1808
|
const configLines = [
|
|
1811
|
-
`clientId: process.env.${provider.envPrefix}_CLIENT_ID
|
|
1812
|
-
`clientSecret: process.env.${provider.envPrefix}_CLIENT_SECRET
|
|
1809
|
+
`clientId: process.env.${provider.envPrefix}_CLIENT_ID!,`,
|
|
1810
|
+
`clientSecret: process.env.${provider.envPrefix}_CLIENT_SECRET!,`
|
|
1813
1811
|
];
|
|
1814
1812
|
if (providerId === "figma") {
|
|
1815
|
-
configLines.push(`clientKey: process.env.FIGMA_CLIENT_KEY
|
|
1813
|
+
configLines.push(`clientKey: process.env.FIGMA_CLIENT_KEY!,`);
|
|
1816
1814
|
}
|
|
1817
1815
|
return `${providerId}: {
|
|
1818
1816
|
${configLines.join("\n ")}
|
package/package.json
CHANGED