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
- if (emailPasswordEnabled) {
1800
- parts.push(`emailAndPassword: {
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 as string,`,
1812
- `clientSecret: process.env.${provider.envPrefix}_CLIENT_SECRET as string,`
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 as string,`);
1813
+ configLines.push(`clientKey: process.env.FIGMA_CLIENT_KEY!,`);
1816
1814
  }
1817
1815
  return `${providerId}: {
1818
1816
  ${configLines.join("\n ")}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-z3",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "type": "module",
5
5
  "description": "CLI for scaffolding Z3 Stack applications (TanStack/Next.js + Convex + Better Auth)",
6
6
  "bin": {
@@ -36,7 +36,7 @@ export const createAuth = (
36
36
  session: {
37
37
  modelName: TABLE_SLUG_SESSIONS
38
38
  },
39
- trustedOrigins: [process.env.SITE_URL],
39
+ trustedOrigins: [process.env.SITE_URL!],
40
40
  user: {
41
41
  additionalFields: {
42
42
  role: {