mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
Implement comprehensive auth template system
This commit is contained in:
@@ -18,13 +18,14 @@ export async function setupAuth(
|
||||
projectDir: string,
|
||||
enableAuth: boolean,
|
||||
): Promise<void> {
|
||||
if (!enableAuth) {
|
||||
return;
|
||||
}
|
||||
|
||||
const serverDir = path.join(projectDir, "packages/server");
|
||||
const clientDir = path.join(projectDir, "packages/client");
|
||||
|
||||
try {
|
||||
if (!enableAuth) {
|
||||
return;
|
||||
}
|
||||
addPackageDependency({
|
||||
dependencies: ["better-auth"],
|
||||
projectDir: serverDir,
|
||||
|
||||
Reference in New Issue
Block a user