Skip to main content
Glama

AI Code Toolkit

by AgiFlow
auth-client.ts.liquid813 B
/** * Better Auth Client Configuration * * DESIGN PATTERNS: * - Client-side auth hooks and utilities * - Use 'use client' directive in components that import this * - React hooks for auth state management * * CODING STANDARDS: * - Import in client components only * - Use hooks (useSession, useSignIn, useSignUp, etc.) * - Handle loading and error states properly * * USAGE: * - Import { authClient } from '@/lib/auth-client' * - Use authClient hooks in client components * - Check session state before rendering protected UI */ "use client"; import { createAuthClient } from "better-auth/react"; export const authClient = createAuthClient({ baseURL: process.env.NEXT_PUBLIC_BETTER_AUTH_URL || "http://localhost:3000", }); export const { useSession, signIn, signOut, signUp } = authClient;

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/AgiFlow/aicode-toolkit'

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