create-scaffauth 0.1.2 → 0.1.3
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/templates/express/drizzle-mysql/src/index.ts +1 -1
- package/dist/templates/express/drizzle-postgres/src/index.ts +1 -1
- package/dist/templates/express/drizzle-sqlite/src/index.ts +1 -1
- package/dist/templates/express/kysely-mysql/src/auth.ts.hbs +3 -3
- package/dist/templates/express/kysely-mysql/src/index.ts +1 -1
- package/dist/templates/express/kysely-postgres/src/auth.ts.hbs +4 -4
- package/dist/templates/express/kysely-postgres/src/index.ts +1 -1
- package/dist/templates/express/kysely-sqlite/src/auth.ts.hbs +3 -3
- package/dist/templates/express/kysely-sqlite/src/index.ts +1 -1
- package/dist/templates/express/prisma-mysql/src/index.ts +1 -1
- package/dist/templates/express/prisma-postgres/src/index.ts +1 -1
- package/dist/templates/express/prisma-sqlite/src/index.ts +1 -1
- package/dist/templates/fastify/kysely-mysql/src/auth.ts.hbs +3 -3
- package/dist/templates/fastify/kysely-postgres/src/auth.ts.hbs +4 -4
- package/dist/templates/fastify/kysely-sqlite/src/auth.ts.hbs +3 -3
- package/dist/templates/hono/kysely-mysql/src/auth.ts.hbs +3 -3
- package/dist/templates/hono/kysely-postgres/src/auth.ts.hbs +4 -4
- package/dist/templates/hono/kysely-sqlite/src/auth.ts.hbs +3 -3
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { betterAuth } from "better-auth";
|
|
2
|
-
import { kyselyAdapter } from "better-auth/adapters/kysely";
|
|
3
2
|
import { db } from "../db/db";
|
|
4
3
|
{{#if twoFactor}}
|
|
5
4
|
import { twoFactor } from "better-auth/plugins";
|
|
@@ -31,9 +30,10 @@ const transporter = nodemailer.createTransport({
|
|
|
31
30
|
{{/if}}
|
|
32
31
|
|
|
33
32
|
export const auth = betterAuth({
|
|
34
|
-
database:
|
|
33
|
+
database: {
|
|
34
|
+
db,
|
|
35
35
|
type: "mysql",
|
|
36
|
-
}
|
|
36
|
+
},
|
|
37
37
|
emailAndPassword: {
|
|
38
38
|
enabled: true,
|
|
39
39
|
{{#if emailProvider}}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { betterAuth } from "better-auth";
|
|
2
|
-
import { kyselyAdapter } from "better-auth/adapters/kysely";
|
|
3
2
|
import { db } from "../db/db";
|
|
4
3
|
{{#if twoFactor}}
|
|
5
4
|
import { twoFactor } from "better-auth/plugins";
|
|
@@ -31,9 +30,10 @@ const transporter = nodemailer.createTransport({
|
|
|
31
30
|
{{/if}}
|
|
32
31
|
|
|
33
32
|
export const auth = betterAuth({
|
|
34
|
-
database:
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
database: {
|
|
34
|
+
db,
|
|
35
|
+
type: "postgres",
|
|
36
|
+
},
|
|
37
37
|
emailAndPassword: {
|
|
38
38
|
enabled: true,
|
|
39
39
|
{{#if emailProvider}}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { betterAuth } from "better-auth";
|
|
2
|
-
import { kyselyAdapter } from "better-auth/adapters/kysely";
|
|
3
2
|
import { db } from "../db/db";
|
|
4
3
|
{{#if twoFactor}}
|
|
5
4
|
import { twoFactor } from "better-auth/plugins";
|
|
@@ -31,9 +30,10 @@ const transporter = nodemailer.createTransport({
|
|
|
31
30
|
{{/if}}
|
|
32
31
|
|
|
33
32
|
export const auth = betterAuth({
|
|
34
|
-
database:
|
|
33
|
+
database: {
|
|
34
|
+
db,
|
|
35
35
|
type: "sqlite",
|
|
36
|
-
}
|
|
36
|
+
},
|
|
37
37
|
emailAndPassword: {
|
|
38
38
|
enabled: true,
|
|
39
39
|
{{#if emailProvider}}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { betterAuth } from "better-auth";
|
|
2
|
-
import { kyselyAdapter } from "better-auth/adapters/kysely";
|
|
3
2
|
import { db } from "../db/db";
|
|
4
3
|
{{#if twoFactor}}
|
|
5
4
|
import { twoFactor } from "better-auth/plugins";
|
|
@@ -31,9 +30,10 @@ const transporter = nodemailer.createTransport({
|
|
|
31
30
|
{{/if}}
|
|
32
31
|
|
|
33
32
|
export const auth = betterAuth({
|
|
34
|
-
database:
|
|
33
|
+
database: {
|
|
34
|
+
db,
|
|
35
35
|
type: "mysql",
|
|
36
|
-
}
|
|
36
|
+
},
|
|
37
37
|
emailAndPassword: {
|
|
38
38
|
enabled: true,
|
|
39
39
|
{{#if emailProvider}}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { betterAuth } from "better-auth";
|
|
2
|
-
import { kyselyAdapter } from "better-auth/adapters/kysely";
|
|
3
2
|
import { db } from "../db/db";
|
|
4
3
|
{{#if twoFactor}}
|
|
5
4
|
import { twoFactor } from "better-auth/plugins";
|
|
@@ -31,9 +30,10 @@ const transporter = nodemailer.createTransport({
|
|
|
31
30
|
{{/if}}
|
|
32
31
|
|
|
33
32
|
export const auth = betterAuth({
|
|
34
|
-
database:
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
database: {
|
|
34
|
+
db,
|
|
35
|
+
type: "postgres",
|
|
36
|
+
},
|
|
37
37
|
emailAndPassword: {
|
|
38
38
|
enabled: true,
|
|
39
39
|
{{#if emailProvider}}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { betterAuth } from "better-auth";
|
|
2
|
-
import { kyselyAdapter } from "better-auth/adapters/kysely";
|
|
3
2
|
import { db } from "../db/db";
|
|
4
3
|
{{#if twoFactor}}
|
|
5
4
|
import { twoFactor } from "better-auth/plugins";
|
|
@@ -31,9 +30,10 @@ const transporter = nodemailer.createTransport({
|
|
|
31
30
|
{{/if}}
|
|
32
31
|
|
|
33
32
|
export const auth = betterAuth({
|
|
34
|
-
database:
|
|
33
|
+
database: {
|
|
34
|
+
db,
|
|
35
35
|
type: "sqlite",
|
|
36
|
-
}
|
|
36
|
+
},
|
|
37
37
|
emailAndPassword: {
|
|
38
38
|
enabled: true,
|
|
39
39
|
{{#if emailProvider}}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { betterAuth } from "better-auth";
|
|
2
|
-
import { kyselyAdapter } from "better-auth/adapters/kysely";
|
|
3
2
|
import { db } from "../db/db";
|
|
4
3
|
{{#if twoFactor}}
|
|
5
4
|
import { twoFactor } from "better-auth/plugins";
|
|
@@ -31,9 +30,10 @@ const transporter = nodemailer.createTransport({
|
|
|
31
30
|
{{/if}}
|
|
32
31
|
|
|
33
32
|
export const auth = betterAuth({
|
|
34
|
-
database:
|
|
33
|
+
database: {
|
|
34
|
+
db,
|
|
35
35
|
type: "mysql",
|
|
36
|
-
}
|
|
36
|
+
},
|
|
37
37
|
emailAndPassword: {
|
|
38
38
|
enabled: true,
|
|
39
39
|
{{#if emailProvider}}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { betterAuth } from "better-auth";
|
|
2
|
-
import { kyselyAdapter } from "better-auth/adapters/kysely";
|
|
3
2
|
import { db } from "../db/db";
|
|
4
3
|
{{#if twoFactor}}
|
|
5
4
|
import { twoFactor } from "better-auth/plugins";
|
|
@@ -31,9 +30,10 @@ const transporter = nodemailer.createTransport({
|
|
|
31
30
|
{{/if}}
|
|
32
31
|
|
|
33
32
|
export const auth = betterAuth({
|
|
34
|
-
database:
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
database: {
|
|
34
|
+
db,
|
|
35
|
+
type: "postgres",
|
|
36
|
+
},
|
|
37
37
|
emailAndPassword: {
|
|
38
38
|
enabled: true,
|
|
39
39
|
{{#if emailProvider}}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { betterAuth } from "better-auth";
|
|
2
|
-
import { kyselyAdapter } from "better-auth/adapters/kysely";
|
|
3
2
|
import { db } from "../db/db";
|
|
4
3
|
{{#if twoFactor}}
|
|
5
4
|
import { twoFactor } from "better-auth/plugins";
|
|
@@ -31,9 +30,10 @@ const transporter = nodemailer.createTransport({
|
|
|
31
30
|
{{/if}}
|
|
32
31
|
|
|
33
32
|
export const auth = betterAuth({
|
|
34
|
-
database:
|
|
33
|
+
database: {
|
|
34
|
+
db,
|
|
35
35
|
type: "sqlite",
|
|
36
|
-
}
|
|
36
|
+
},
|
|
37
37
|
emailAndPassword: {
|
|
38
38
|
enabled: true,
|
|
39
39
|
{{#if emailProvider}}
|