Skip to main content
Glama
middleware.ts489 B
import NextAuth from "next-auth"; import { authConfig } from "./lib/auth.config"; const { auth } = NextAuth(authConfig); export default auth; // // Or like this if you need to do something here. // export default auth((req) => { // console.log(req.auth) // { session: { user: { ... } } } // }) // Read more: https://nextjs.org/docs/app/building-your-application/routing/middleware#matcher export const config = { matcher: ["/((?!api|_next/static|_next/image|favicon.ico).*)"], };

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