Skip to main content
Glama
_authenticated.tsx495 B
import { Outlet, createFileRoute, redirect } from '@tanstack/react-router'; import { getAuth, getSignInUrl } from '@workos/authkit-tanstack-react-start'; export const Route = createFileRoute('/_authenticated')({ loader: async ({ location }) => { const { user } = await getAuth(); if (!user) { const path = location.pathname; const href = await getSignInUrl({ data: { returnPathname: path } }); throw redirect({ href }); } }, component: () => <Outlet />, });

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/get-convex/convex-backend'

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