Skip to main content
Glama
auth.config.ts600 B
import { ExpressAuth, ExpressAuthConfig } from "@auth/express" import Google from "@auth/express/providers/google" export const authConfig = { trustHost: true, providers: [ Google, ], session: { strategy: "jwt" }, callbacks: { jwt({ token, user }) { if (user) { // User is available during sign-in token.id = user.id; } return token; }, session({ session, token }) { session.user.id = token.id as string; return session; }, }, } as const satisfies ExpressAuthConfig; export const expressAuth = ExpressAuth(authConfig);

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