Skip to main content
Glama
auth.ts705 B
export interface User { id: string; email: string; name: string; } export class AuthService { private users: Map<string, User> = new Map(); async authenticate(email: string, _password: string): Promise<User | null> { const user = Array.from(this.users.values()).find((u) => u.email === email); if (!user) { return null; } return user; } async register(email: string, name: string, _password: string): Promise<User> { const user: User = { id: Math.random().toString(36), email, name, }; this.users.set(user.id, user); return user; } async getUser(id: string): Promise<User | null> { return this.users.get(id) || null; } }

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/mhalder/qdrant-mcp-server'

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