feat(frontend): Prettier, add openapi client generation
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { auth } from "../../utils/auth";
|
||||
import { H3Event } from "h3";
|
||||
import { auth } from '../../utils/auth'
|
||||
import { H3Event } from 'h3'
|
||||
|
||||
export default defineEventHandler((event: H3Event) => {
|
||||
return auth.handler(toWebRequest(event));
|
||||
});
|
||||
return auth.handler(toWebRequest(event))
|
||||
})
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { betterAuth } from "better-auth";
|
||||
import Database from "better-sqlite3";
|
||||
import { betterAuth } from 'better-auth'
|
||||
import Database from 'better-sqlite3'
|
||||
|
||||
export const auth = betterAuth({
|
||||
database: new Database("./sqlite.db"),
|
||||
database: new Database('./sqlite.db'),
|
||||
emailAndPassword: { enabled: true, autoSignIn: false },
|
||||
user: { modelName: "better_auth_user" },
|
||||
session: { modelName: "better_auth_session" },
|
||||
account: { modelName: "better_auth_account" },
|
||||
verification: { modelName: "better_auth_verification" },
|
||||
});
|
||||
user: { modelName: 'better_auth_user' },
|
||||
session: { modelName: 'better_auth_session' },
|
||||
account: { modelName: 'better_auth_account' },
|
||||
verification: { modelName: 'better_auth_verification' }
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user