chart data loading
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { betterAuth } from 'better-auth';
|
||||
import { bearer } from 'better-auth/plugins/bearer';
|
||||
import { Pool } from 'pg';
|
||||
import { Kysely, PostgresDialect } from 'kysely';
|
||||
import type { FastifyBaseLogger } from 'fastify';
|
||||
@@ -88,6 +89,11 @@ export async function createBetterAuth(config: BetterAuthConfig) {
|
||||
},
|
||||
},
|
||||
|
||||
// Plugins
|
||||
plugins: [
|
||||
bearer(), // Enable Bearer token authentication for API/WebSocket
|
||||
],
|
||||
|
||||
});
|
||||
|
||||
config.logger.debug('Better Auth instance created');
|
||||
|
||||
Reference in New Issue
Block a user