Skip to main content
Glama
auth-components.tsx712 B
import { signIn, signOut } from "@/auth" import { Button } from "./ui/button" export function SignIn({ provider, ...props }: { provider?: string } & React.ComponentPropsWithRef<typeof Button>) { return ( <form action={async () => { "use server" await signIn(provider) }} > <Button {...props}>Sign In</Button> </form> ) } export function SignOut(props: React.ComponentPropsWithRef<typeof Button>) { return ( <form action={async () => { "use server" await signOut() }} className="w-full" > <Button variant="ghost" className="w-full p-0 border-1" {...props}> Sign Out </Button> </form> ) }

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