Skip to main content
Glama
auth.ts395 B
import { betterAuth } from "better-auth"; import { env } from "cloudflare:workers"; import { Pool } from "pg"; /** * Better Auth Instance */ export const auth = ( env: CloudflareBindings ): ReturnType<typeof betterAuth> => { return betterAuth({ database: new Pool({ connectionString: env.DB.connectionString, }), emailAndPassword: { enabled: true, }, }); };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mcpauth/mcpauth'

If you have feedback or need assistance with the MCP directory API, please join our Discord server