Skip to content

Commit bda0d5a

Browse files
Remove database check from auth setup flow
1 parent e77c569 commit bda0d5a

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

apps/cli/src/helpers/auth-setup.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import type { ProjectConfig } from "../types";
88
export async function setupAuth(
99
projectDir: string,
1010
enableAuth: boolean,
11-
hasDatabase: boolean,
1211
options: ProjectConfig,
1312
): Promise<void> {
1413
const serverDir = path.join(projectDir, "packages/server");
@@ -19,15 +18,6 @@ export async function setupAuth(
1918
return;
2019
}
2120

22-
if (!hasDatabase) {
23-
log.warn(
24-
pc.yellow(
25-
"Authentication enabled but no database selected. Auth will not function properly.",
26-
),
27-
);
28-
return;
29-
}
30-
3121
const envPath = path.join(serverDir, ".env");
3222
const templateEnvPath = path.join(
3323
PKG_ROOT,

apps/cli/src/helpers/create-project.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,7 @@ export async function createProject(options: ProjectConfig): Promise<string> {
7070
options.turso ?? options.database === "sqlite",
7171
);
7272

73-
await setupAuth(
74-
projectDir,
75-
options.auth,
76-
options.database !== "none",
77-
options,
78-
);
73+
await setupAuth(projectDir, options.auth, options);
7974

8075
if (options.git) {
8176
await $({ cwd: projectDir })`git init`;

0 commit comments

Comments
 (0)