Skip to main content
Glama
auth.ts573 B
import { api } from "./_generated/api"; import { query, mutation } from "./_generated/server"; export const q = query({ args: {}, handler: async ({ auth }) => { return await auth.getUserIdentity(); }, }); export const m = mutation({ args: {}, handler: async ({ auth }) => { return await auth.getUserIdentity(); }, }); export const s = mutation({ args: {}, handler: async ({ scheduler, auth }) => { if (!auth.getUserIdentity()) { throw new Error("not authed"); } await scheduler.runAfter(0, api.actions.auth.storeUser); }, });

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