mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 12:27:43 +00:00
demo: fix dep
This commit is contained in:
@@ -120,5 +120,3 @@ export const auth = betterAuth({
|
||||
multiSession(),
|
||||
],
|
||||
});
|
||||
|
||||
auth.api.changeEmail;
|
||||
|
||||
@@ -67,6 +67,13 @@ export interface BetterAuthOptions {
|
||||
| MysqlPool
|
||||
| BetterSqlite3Database
|
||||
| Dialect
|
||||
| Adapter
|
||||
| {
|
||||
postgres?: PostgresPool;
|
||||
mysql?: MysqlPool;
|
||||
sqlite?: BetterSqlite3Database;
|
||||
generateId?: ((size?: number) => string) | false;
|
||||
}
|
||||
| {
|
||||
dialect: Dialect;
|
||||
type: KyselyDatabaseType;
|
||||
@@ -80,7 +87,6 @@ export interface BetterAuthOptions {
|
||||
*/
|
||||
generateId?: ((size?: number) => string) | false;
|
||||
}
|
||||
| Adapter
|
||||
| {
|
||||
/**
|
||||
* Kysely instance
|
||||
|
||||
@@ -37,7 +37,7 @@ export async function generateAction(opts: any) {
|
||||
return;
|
||||
}
|
||||
|
||||
const adapter = await getAdapter(config, true).catch((e) => {
|
||||
const adapter = await getAdapter(config).catch((e) => {
|
||||
logger.error(e.message);
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user