@batijs/cli 0.0.444 → 0.0.446
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/boilerplates/@batijs/auth0/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/auth0/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/authjs/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/cloudflare/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$wrangler.toml.js +1 -1
- package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +1 -7
- package/dist/boilerplates/@batijs/drizzle/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/drizzle/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +1 -13
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/express/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/express/files/express-entry.ts +0 -35
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/fastify/files/fastify-entry.ts +0 -35
- package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/h3/files/h3-entry.ts +0 -35
- package/dist/boilerplates/@batijs/hattip/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/hattip/files/hattip-entry.ts +0 -35
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/hono/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/hono/files/hono-entry.ts +0 -35
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/panda-css/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +1 -1
- package/dist/boilerplates/@batijs/prettier/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/prettier/files/.prettierignore +1 -4
- package/dist/boilerplates/@batijs/prisma/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/prisma/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/prisma/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/react/files/layouts/LayoutDefault.tsx +0 -1
- package/dist/boilerplates/@batijs/react/files/pages/+config.ts +1 -1
- package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/shared/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/shared/files/gitignore +1 -4
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/layouts/LayoutDefault.tsx +0 -1
- package/dist/boilerplates/@batijs/solid/files/pages/+config.ts +1 -1
- package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +1 -13
- package/dist/boilerplates/@batijs/sqlite/files/database/sqlite/schema/all.ts +0 -2
- package/dist/boilerplates/@batijs/sqlite/types/database/sqlite/schema/all.d.ts +0 -1
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +3 -3
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vercel/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/vercel/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/layouts/LayoutDefault.vue +0 -2
- package/dist/boilerplates/@batijs/vue/files/pages/+config.ts +1 -1
- package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/boilerplates.json +0 -118
- package/dist/{chunk-HYBBK3CW.js → chunk-ZDDQD2BO.js} +9848 -9848
- package/dist/index.js +17 -64
- package/package.json +5 -5
- package/dist/boilerplates/@batijs/d1-sqlite/files/database/d1/queries/lucia-auth.ts +0 -29
- package/dist/boilerplates/@batijs/d1-sqlite/files/database/migrations/lucia-auth.sql +0 -20
- package/dist/boilerplates/@batijs/d1-sqlite/types/database/d1/queries/lucia-auth.d.ts +0 -5
- package/dist/boilerplates/@batijs/drizzle/files/database/drizzle/queries/lucia-auth.ts +0 -56
- package/dist/boilerplates/@batijs/drizzle/files/database/drizzle/schema/lucia-auth.ts +0 -41
- package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/queries/lucia-auth.d.ts +0 -25
- package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/schema/lucia-auth.d.ts +0 -190
- package/dist/boilerplates/@batijs/express/files/global.d.ts +0 -10
- package/dist/boilerplates/@batijs/fastify/files/global.d.ts +0 -10
- package/dist/boilerplates/@batijs/firebase-auth/files/$.env.js +0 -24
- package/dist/boilerplates/@batijs/firebase-auth/files/$README.md.js +0 -39
- package/dist/boilerplates/@batijs/firebase-auth/files/$package.json.js +0 -133
- package/dist/boilerplates/@batijs/firebase-auth/files/firebase/$service-account.json.js +0 -26
- package/dist/boilerplates/@batijs/firebase-auth/files/global.d.ts +0 -11
- package/dist/boilerplates/@batijs/firebase-auth/files/libs/firebaseAdmin.ts +0 -15
- package/dist/boilerplates/@batijs/firebase-auth/files/libs/firebaseUI.ts +0 -31
- package/dist/boilerplates/@batijs/firebase-auth/files/pages/+client.ts +0 -30
- package/dist/boilerplates/@batijs/firebase-auth/files/pages/login/+config.ts +0 -6
- package/dist/boilerplates/@batijs/firebase-auth/files/pages/login/+guard.ts +0 -11
- package/dist/boilerplates/@batijs/firebase-auth/files/server/firebase-auth-middleware.ts +0 -71
- package/dist/boilerplates/@batijs/firebase-auth/types/libs/firebaseAdmin.d.ts +0 -5
- package/dist/boilerplates/@batijs/firebase-auth/types/libs/firebaseUI.d.ts +0 -5
- package/dist/boilerplates/@batijs/firebase-auth/types/pages/+client.d.ts +0 -1
- package/dist/boilerplates/@batijs/firebase-auth/types/pages/login/+config.d.ts +0 -4
- package/dist/boilerplates/@batijs/firebase-auth/types/pages/login/+guard.d.ts +0 -3
- package/dist/boilerplates/@batijs/firebase-auth/types/server/firebase-auth-middleware.d.ts +0 -4
- package/dist/boilerplates/@batijs/h3/files/global.d.ts +0 -10
- package/dist/boilerplates/@batijs/hono/files/global.d.ts +0 -10
- package/dist/boilerplates/@batijs/lucia-auth/files/$.env.js +0 -32
- package/dist/boilerplates/@batijs/lucia-auth/files/$README.md.js +0 -38
- package/dist/boilerplates/@batijs/lucia-auth/files/$package.json.js +0 -113
- package/dist/boilerplates/@batijs/lucia-auth/files/global.d.ts +0 -11
- package/dist/boilerplates/@batijs/lucia-auth/files/lib/lucia-auth.ts +0 -136
- package/dist/boilerplates/@batijs/lucia-auth/files/pages/login/+guard.ts +0 -11
- package/dist/boilerplates/@batijs/lucia-auth/files/pages/login/style.css +0 -94
- package/dist/boilerplates/@batijs/lucia-auth/files/server/lucia-auth-handlers.ts +0 -401
- package/dist/boilerplates/@batijs/lucia-auth/types/lib/lucia-auth.d.ts +0 -63
- package/dist/boilerplates/@batijs/lucia-auth/types/pages/login/+guard.d.ts +0 -3
- package/dist/boilerplates/@batijs/lucia-auth/types/server/lucia-auth-handlers.d.ts +0 -65
- package/dist/boilerplates/@batijs/react-firebase-auth/files/pages/login/+Page.tsx +0 -52
- package/dist/boilerplates/@batijs/react-firebase-auth/types/pages/login/+Page.d.ts +0 -3
- package/dist/boilerplates/@batijs/react-lucia-auth/files/pages/login/+Page.tsx +0 -97
- package/dist/boilerplates/@batijs/react-lucia-auth/types/pages/login/+Page.d.ts +0 -2
- package/dist/boilerplates/@batijs/solid-firebase-auth/files/pages/login/+Page.tsx +0 -52
- package/dist/boilerplates/@batijs/solid-firebase-auth/types/pages/login/+Page.d.ts +0 -3
- package/dist/boilerplates/@batijs/solid-lucia-auth/files/pages/login/+Page.tsx +0 -97
- package/dist/boilerplates/@batijs/solid-lucia-auth/types/pages/login/+Page.d.ts +0 -2
- package/dist/boilerplates/@batijs/sqlite/files/database/sqlite/queries/lucia-auth.ts +0 -27
- package/dist/boilerplates/@batijs/sqlite/files/database/sqlite/schema/lucia-auth.ts +0 -32
- package/dist/boilerplates/@batijs/sqlite/types/database/sqlite/queries/lucia-auth.d.ts +0 -5
- package/dist/boilerplates/@batijs/sqlite/types/database/sqlite/schema/lucia-auth.d.ts +0 -1
- package/dist/boilerplates/@batijs/vue-firebase-auth/files/pages/login/+Page.vue +0 -51
- package/dist/boilerplates/@batijs/vue-lucia-auth/files/pages/login/+Page.vue +0 -88
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
|
-
import "../../../../chunk-
|
|
5
|
+
import "../../../../chunk-ZDDQD2BO.js";
|
|
6
6
|
import "../../../../chunk-V7W2TXCE.js";
|
|
7
7
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
8
8
|
|
|
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
ata
|
|
7
|
-
} from "../../../../chunk-
|
|
7
|
+
} from "../../../../chunk-ZDDQD2BO.js";
|
|
8
8
|
import "../../../../chunk-V7W2TXCE.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -73,18 +73,12 @@ var require_package = __commonJS({
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
exports: {
|
|
76
|
-
"./database/d1/queries/lucia-auth": {
|
|
77
|
-
types: "./dist/types/database/d1/queries/lucia-auth.d.ts"
|
|
78
|
-
},
|
|
79
76
|
"./database/d1/queries/todos": {
|
|
80
77
|
types: "./dist/types/database/d1/queries/todos.d.ts"
|
|
81
78
|
}
|
|
82
79
|
},
|
|
83
80
|
typesVersions: {
|
|
84
81
|
"*": {
|
|
85
|
-
"database/d1/queries/lucia-auth": [
|
|
86
|
-
"./dist/types/database/d1/queries/lucia-auth.d.ts"
|
|
87
|
-
],
|
|
88
82
|
"database/d1/queries/todos": [
|
|
89
83
|
"./dist/types/database/d1/queries/todos.d.ts"
|
|
90
84
|
]
|
|
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
ata
|
|
7
|
-
} from "../../../../chunk-
|
|
7
|
+
} from "../../../../chunk-ZDDQD2BO.js";
|
|
8
8
|
import "../../../../chunk-V7W2TXCE.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -76,12 +76,6 @@ var require_package = __commonJS({
|
|
|
76
76
|
"./database/drizzle/db": {
|
|
77
77
|
types: "./dist/types/database/drizzle/db.d.ts"
|
|
78
78
|
},
|
|
79
|
-
"./database/drizzle/schema/lucia-auth": {
|
|
80
|
-
types: "./dist/types/database/drizzle/schema/lucia-auth.d.ts"
|
|
81
|
-
},
|
|
82
|
-
"./database/drizzle/queries/lucia-auth": {
|
|
83
|
-
types: "./dist/types/database/drizzle/queries/lucia-auth.d.ts"
|
|
84
|
-
},
|
|
85
79
|
"./database/drizzle/schema/todos": {
|
|
86
80
|
types: "./dist/types/database/drizzle/schema/todos.d.ts"
|
|
87
81
|
},
|
|
@@ -97,12 +91,6 @@ var require_package = __commonJS({
|
|
|
97
91
|
"database/drizzle/db": [
|
|
98
92
|
"./dist/types/database/drizzle/db.d.ts"
|
|
99
93
|
],
|
|
100
|
-
"database/drizzle/schema/lucia-auth": [
|
|
101
|
-
"./dist/types/database/drizzle/schema/lucia-auth.d.ts"
|
|
102
|
-
],
|
|
103
|
-
"database/drizzle/queries/lucia-auth": [
|
|
104
|
-
"./dist/types/database/drizzle/queries/lucia-auth.d.ts"
|
|
105
|
-
],
|
|
106
94
|
"database/drizzle/schema/todos": [
|
|
107
95
|
"./dist/types/database/drizzle/schema/todos.d.ts"
|
|
108
96
|
],
|
|
@@ -3,22 +3,6 @@ import "dotenv/config";
|
|
|
3
3
|
import { dirname } from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
5
|
import { authjsHandler, authjsSessionMiddleware } from "@batijs/authjs/server/authjs-handler";
|
|
6
|
-
import {
|
|
7
|
-
firebaseAuthLoginHandler,
|
|
8
|
-
firebaseAuthLogoutHandler,
|
|
9
|
-
firebaseAuthMiddleware,
|
|
10
|
-
} from "@batijs/firebase-auth/server/firebase-auth-middleware";
|
|
11
|
-
import {
|
|
12
|
-
luciaAuthContextMiddleware,
|
|
13
|
-
luciaAuthCookieMiddleware,
|
|
14
|
-
luciaAuthLoginHandler,
|
|
15
|
-
luciaAuthLogoutHandler,
|
|
16
|
-
luciaAuthSignupHandler,
|
|
17
|
-
luciaCsrfMiddleware,
|
|
18
|
-
luciaDbMiddleware,
|
|
19
|
-
luciaGithubCallbackHandler,
|
|
20
|
-
luciaGithubLoginHandler,
|
|
21
|
-
} from "@batijs/lucia-auth/server/lucia-auth-handlers";
|
|
22
6
|
import { createTodoHandler } from "@batijs/shared-server/server/create-todo-handler";
|
|
23
7
|
import { vikeHandler } from "@batijs/shared-server/server/vike-handler";
|
|
24
8
|
import { telefuncHandler } from "@batijs/telefunc/server/telefunc-handler";
|
|
@@ -77,25 +61,6 @@ async function startServer() {
|
|
|
77
61
|
app.all("/api/auth/*auth", createHandler(authjsHandler)());
|
|
78
62
|
}
|
|
79
63
|
|
|
80
|
-
if (BATI.has("firebase-auth")) {
|
|
81
|
-
app.use(createMiddleware(firebaseAuthMiddleware)());
|
|
82
|
-
app.post("/api/sessionLogin", createHandler(firebaseAuthLoginHandler)());
|
|
83
|
-
app.post("/api/sessionLogout", createHandler(firebaseAuthLogoutHandler)());
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
if (BATI.has("lucia-auth")) {
|
|
87
|
-
app.use(createMiddleware(luciaDbMiddleware)());
|
|
88
|
-
app.use(createMiddleware(luciaCsrfMiddleware)());
|
|
89
|
-
app.use(createMiddleware(luciaAuthContextMiddleware)());
|
|
90
|
-
app.use(createMiddleware(luciaAuthCookieMiddleware)());
|
|
91
|
-
|
|
92
|
-
app.post("/api/signup", createHandler(luciaAuthSignupHandler)());
|
|
93
|
-
app.post("/api/login", createHandler(luciaAuthLoginHandler)());
|
|
94
|
-
app.post("/api/logout", createHandler(luciaAuthLogoutHandler)());
|
|
95
|
-
app.get("/api/login/github", createHandler(luciaGithubLoginHandler)());
|
|
96
|
-
app.get("/api/login/github/callback", createHandler(luciaGithubCallbackHandler)());
|
|
97
|
-
}
|
|
98
|
-
|
|
99
64
|
if (BATI.has("trpc")) {
|
|
100
65
|
/**
|
|
101
66
|
* tRPC route
|
|
@@ -3,22 +3,6 @@ import "dotenv/config";
|
|
|
3
3
|
import { dirname } from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
5
|
import { authjsHandler, authjsSessionMiddleware } from "@batijs/authjs/server/authjs-handler";
|
|
6
|
-
import {
|
|
7
|
-
firebaseAuthLoginHandler,
|
|
8
|
-
firebaseAuthLogoutHandler,
|
|
9
|
-
firebaseAuthMiddleware,
|
|
10
|
-
} from "@batijs/firebase-auth/server/firebase-auth-middleware";
|
|
11
|
-
import {
|
|
12
|
-
luciaAuthContextMiddleware,
|
|
13
|
-
luciaAuthCookieMiddleware,
|
|
14
|
-
luciaAuthLoginHandler,
|
|
15
|
-
luciaAuthLogoutHandler,
|
|
16
|
-
luciaAuthSignupHandler,
|
|
17
|
-
luciaCsrfMiddleware,
|
|
18
|
-
luciaDbMiddleware,
|
|
19
|
-
luciaGithubCallbackHandler,
|
|
20
|
-
luciaGithubLoginHandler,
|
|
21
|
-
} from "@batijs/lucia-auth/server/lucia-auth-handlers";
|
|
22
6
|
import { createTodoHandler } from "@batijs/shared-server/server/create-todo-handler";
|
|
23
7
|
import { vikeHandler } from "@batijs/shared-server/server/vike-handler";
|
|
24
8
|
import { telefuncHandler } from "@batijs/telefunc/server/telefunc-handler";
|
|
@@ -87,25 +71,6 @@ async function startServer() {
|
|
|
87
71
|
app.all("/api/auth/*", createHandler(authjsHandler)());
|
|
88
72
|
}
|
|
89
73
|
|
|
90
|
-
if (BATI.has("firebase-auth")) {
|
|
91
|
-
app.register(createMiddleware(firebaseAuthMiddleware)());
|
|
92
|
-
app.post("/api/sessionLogin", createHandler(firebaseAuthLoginHandler)());
|
|
93
|
-
app.post("/api/sessionLogout", createHandler(firebaseAuthLogoutHandler)());
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
if (BATI.has("lucia-auth")) {
|
|
97
|
-
await app.register(createMiddleware(luciaDbMiddleware)());
|
|
98
|
-
await app.register(createMiddleware(luciaCsrfMiddleware)());
|
|
99
|
-
await app.register(createMiddleware(luciaAuthContextMiddleware)());
|
|
100
|
-
await app.register(createMiddleware(luciaAuthCookieMiddleware)());
|
|
101
|
-
|
|
102
|
-
app.post("/api/signup", createHandler(luciaAuthSignupHandler)());
|
|
103
|
-
app.post("/api/login", createHandler(luciaAuthLoginHandler)());
|
|
104
|
-
app.post("/api/logout", createHandler(luciaAuthLogoutHandler)());
|
|
105
|
-
app.get("/api/login/github", createHandler(luciaGithubLoginHandler)());
|
|
106
|
-
app.get("/api/login/github/callback", createHandler(luciaGithubCallbackHandler)());
|
|
107
|
-
}
|
|
108
|
-
|
|
109
74
|
if (BATI.has("trpc")) {
|
|
110
75
|
/**
|
|
111
76
|
* tRPC route
|
|
@@ -4,22 +4,6 @@ import { createServer, type IncomingMessage, type ServerResponse } from "node:ht
|
|
|
4
4
|
import { dirname } from "node:path";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
6
6
|
import { authjsHandler, authjsSessionMiddleware } from "@batijs/authjs/server/authjs-handler";
|
|
7
|
-
import {
|
|
8
|
-
firebaseAuthLoginHandler,
|
|
9
|
-
firebaseAuthLogoutHandler,
|
|
10
|
-
firebaseAuthMiddleware,
|
|
11
|
-
} from "@batijs/firebase-auth/server/firebase-auth-middleware";
|
|
12
|
-
import {
|
|
13
|
-
luciaAuthContextMiddleware,
|
|
14
|
-
luciaAuthCookieMiddleware,
|
|
15
|
-
luciaAuthLoginHandler,
|
|
16
|
-
luciaAuthLogoutHandler,
|
|
17
|
-
luciaAuthSignupHandler,
|
|
18
|
-
luciaCsrfMiddleware,
|
|
19
|
-
luciaDbMiddleware,
|
|
20
|
-
luciaGithubCallbackHandler,
|
|
21
|
-
luciaGithubLoginHandler,
|
|
22
|
-
} from "@batijs/lucia-auth/server/lucia-auth-handlers";
|
|
23
7
|
import { createTodoHandler } from "@batijs/shared-server/server/create-todo-handler";
|
|
24
8
|
import { vikeHandler } from "@batijs/shared-server/server/vike-handler";
|
|
25
9
|
import { telefuncHandler } from "@batijs/telefunc/server/telefunc-handler";
|
|
@@ -89,25 +73,6 @@ async function startServer() {
|
|
|
89
73
|
router.use("/api/auth/**", createHandler(authjsHandler)());
|
|
90
74
|
}
|
|
91
75
|
|
|
92
|
-
if (BATI.has("firebase-auth")) {
|
|
93
|
-
app.use(createMiddleware(firebaseAuthMiddleware)());
|
|
94
|
-
router.post("/api/sessionLogin", createHandler(firebaseAuthLoginHandler)());
|
|
95
|
-
router.post("/api/sessionLogout", createHandler(firebaseAuthLogoutHandler)());
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
if (BATI.has("lucia-auth")) {
|
|
99
|
-
app.use(createMiddleware(luciaDbMiddleware)());
|
|
100
|
-
app.use(createMiddleware(luciaCsrfMiddleware)());
|
|
101
|
-
app.use(createMiddleware(luciaAuthContextMiddleware)());
|
|
102
|
-
app.use(createMiddleware(luciaAuthCookieMiddleware)());
|
|
103
|
-
|
|
104
|
-
router.post("/api/signup", createHandler(luciaAuthSignupHandler)());
|
|
105
|
-
router.post("/api/login", createHandler(luciaAuthLoginHandler)());
|
|
106
|
-
router.post("/api/logout", createHandler(luciaAuthLogoutHandler)());
|
|
107
|
-
router.get("/api/login/github", createHandler(luciaGithubLoginHandler)());
|
|
108
|
-
router.get("/api/login/github/callback", createHandler(luciaGithubCallbackHandler)());
|
|
109
|
-
}
|
|
110
|
-
|
|
111
76
|
if (BATI.has("trpc")) {
|
|
112
77
|
/**
|
|
113
78
|
* tRPC route
|
|
@@ -1,22 +1,6 @@
|
|
|
1
1
|
// BATI.has("auth0") || BATI.hasDatabase
|
|
2
2
|
import "dotenv/config";
|
|
3
3
|
import { authjsHandler, authjsSessionMiddleware } from "@batijs/authjs/server/authjs-handler";
|
|
4
|
-
import {
|
|
5
|
-
firebaseAuthLoginHandler,
|
|
6
|
-
firebaseAuthLogoutHandler,
|
|
7
|
-
firebaseAuthMiddleware,
|
|
8
|
-
} from "@batijs/firebase-auth/server/firebase-auth-middleware";
|
|
9
|
-
import {
|
|
10
|
-
luciaAuthContextMiddleware,
|
|
11
|
-
luciaAuthCookieMiddleware,
|
|
12
|
-
luciaAuthLoginHandler,
|
|
13
|
-
luciaAuthLogoutHandler,
|
|
14
|
-
luciaAuthSignupHandler,
|
|
15
|
-
luciaCsrfMiddleware,
|
|
16
|
-
luciaDbMiddleware,
|
|
17
|
-
luciaGithubCallbackHandler,
|
|
18
|
-
luciaGithubLoginHandler,
|
|
19
|
-
} from "@batijs/lucia-auth/server/lucia-auth-handlers";
|
|
20
4
|
import { createTodoHandler } from "@batijs/shared-server/server/create-todo-handler";
|
|
21
5
|
import { vikeHandler } from "@batijs/shared-server/server/vike-handler";
|
|
22
6
|
import { telefuncHandler } from "@batijs/telefunc/server/telefunc-handler";
|
|
@@ -72,25 +56,6 @@ if (BATI.has("authjs") || BATI.has("auth0")) {
|
|
|
72
56
|
router.use("/api/auth/*", createHandler(authjsHandler)());
|
|
73
57
|
}
|
|
74
58
|
|
|
75
|
-
if (BATI.has("firebase-auth")) {
|
|
76
|
-
router.use(createMiddleware(firebaseAuthMiddleware)());
|
|
77
|
-
router.post("/api/sessionLogin", createHandler(firebaseAuthLoginHandler)());
|
|
78
|
-
router.post("/api/sessionLogout", createHandler(firebaseAuthLogoutHandler)());
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
if (BATI.has("lucia-auth")) {
|
|
82
|
-
router.use(createMiddleware(luciaDbMiddleware)());
|
|
83
|
-
router.use(createMiddleware(luciaCsrfMiddleware)());
|
|
84
|
-
router.use(createMiddleware(luciaAuthContextMiddleware)());
|
|
85
|
-
router.use(createMiddleware(luciaAuthCookieMiddleware)());
|
|
86
|
-
|
|
87
|
-
router.post("/api/signup", createHandler(luciaAuthSignupHandler)());
|
|
88
|
-
router.post("/api/login", createHandler(luciaAuthLoginHandler)());
|
|
89
|
-
router.post("/api/logout", createHandler(luciaAuthLogoutHandler)());
|
|
90
|
-
router.get("/api/login/github", createHandler(luciaGithubLoginHandler)());
|
|
91
|
-
router.get("/api/login/github/callback", createHandler(luciaGithubCallbackHandler)());
|
|
92
|
-
}
|
|
93
|
-
|
|
94
59
|
if (!BATI.has("telefunc") && !BATI.has("trpc") && !BATI.has("ts-rest")) {
|
|
95
60
|
router.post("/api/todo/create", createHandler(createTodoHandler)());
|
|
96
61
|
}
|
|
@@ -1,22 +1,6 @@
|
|
|
1
1
|
// BATI.has("auth0") || BATI.hasDatabase
|
|
2
2
|
import "dotenv/config";
|
|
3
3
|
import { authjsHandler, authjsSessionMiddleware } from "@batijs/authjs/server/authjs-handler";
|
|
4
|
-
import {
|
|
5
|
-
firebaseAuthLoginHandler,
|
|
6
|
-
firebaseAuthLogoutHandler,
|
|
7
|
-
firebaseAuthMiddleware,
|
|
8
|
-
} from "@batijs/firebase-auth/server/firebase-auth-middleware";
|
|
9
|
-
import {
|
|
10
|
-
luciaAuthContextMiddleware,
|
|
11
|
-
luciaAuthCookieMiddleware,
|
|
12
|
-
luciaAuthLoginHandler,
|
|
13
|
-
luciaAuthLogoutHandler,
|
|
14
|
-
luciaAuthSignupHandler,
|
|
15
|
-
luciaCsrfMiddleware,
|
|
16
|
-
luciaDbMiddleware,
|
|
17
|
-
luciaGithubCallbackHandler,
|
|
18
|
-
luciaGithubLoginHandler,
|
|
19
|
-
} from "@batijs/lucia-auth/server/lucia-auth-handlers";
|
|
20
4
|
import { createTodoHandler } from "@batijs/shared-server/server/create-todo-handler";
|
|
21
5
|
import { vikeHandler } from "@batijs/shared-server/server/vike-handler";
|
|
22
6
|
import { telefuncHandler } from "@batijs/telefunc/server/telefunc-handler";
|
|
@@ -49,25 +33,6 @@ if (BATI.has("authjs") || BATI.has("auth0")) {
|
|
|
49
33
|
app.use("/api/auth/**", createHandler(authjsHandler)());
|
|
50
34
|
}
|
|
51
35
|
|
|
52
|
-
if (BATI.has("firebase-auth")) {
|
|
53
|
-
app.use(createMiddleware(firebaseAuthMiddleware)());
|
|
54
|
-
app.post("/api/sessionLogin", createHandler(firebaseAuthLoginHandler)());
|
|
55
|
-
app.post("/api/sessionLogout", createHandler(firebaseAuthLogoutHandler)());
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
if (BATI.has("lucia-auth")) {
|
|
59
|
-
app.use(createMiddleware(luciaDbMiddleware)());
|
|
60
|
-
app.use(createMiddleware(luciaCsrfMiddleware)());
|
|
61
|
-
app.use(createMiddleware(luciaAuthContextMiddleware)());
|
|
62
|
-
app.use(createMiddleware(luciaAuthCookieMiddleware)());
|
|
63
|
-
|
|
64
|
-
app.post("/api/signup", createHandler(luciaAuthSignupHandler)());
|
|
65
|
-
app.post("/api/login", createHandler(luciaAuthLoginHandler)());
|
|
66
|
-
app.post("/api/logout", createHandler(luciaAuthLogoutHandler)());
|
|
67
|
-
app.get("/api/login/github", createHandler(luciaGithubLoginHandler)());
|
|
68
|
-
app.get("/api/login/github/callback", createHandler(luciaGithubCallbackHandler)());
|
|
69
|
-
}
|
|
70
|
-
|
|
71
36
|
if (BATI.has("trpc")) {
|
|
72
37
|
/**
|
|
73
38
|
* tRPC route
|
|
@@ -83,9 +83,6 @@ web_modules/
|
|
|
83
83
|
.cache
|
|
84
84
|
.parcel-cache
|
|
85
85
|
|
|
86
|
-
# firebase-admin service-account
|
|
87
|
-
firebase
|
|
88
|
-
|
|
89
86
|
# Next.js build output
|
|
90
87
|
.next
|
|
91
88
|
out
|
|
@@ -146,4 +143,4 @@ cdk.out
|
|
|
146
143
|
|
|
147
144
|
## Panda
|
|
148
145
|
styled-system
|
|
149
|
-
styled-system-studio
|
|
146
|
+
styled-system-studio
|