Skip to main content
Glama
alexander-zuev

Kollektiv | Your private LLM knowledgebase

consent.stories.tsx1.17 kB
import { base, consentScreen } from "@/web/templates"; import type { ClientInfo, OAuthRequest, User } from "@/web/types"; import type { Meta, StoryObj } from "@storybook/html"; const mockUser: User = { id: "user-123456789", email: "user@example.com", app_metadata: {}, user_metadata: {}, aud: "authenticated", created_at: "", } as User; const mockClientInfo: ClientInfo = { clientId: "demo-client", clientName: "Demo Application", redirectUris: ["https://example.com/callback"], } as ClientInfo; // @ts-ignore const mockOAuthRequest: OAuthRequest = { clientId: "demo-client", redirectUri: "https://example.com/callback", state: "random-state-string", codeChallenge: "code-challenge-string", codeChallengeMethod: "S256", scope: "openid profile email", } as OAuthRequest; const meta: Meta = { title: "Templates/Consent", }; export default meta; /* ----------------------- story ----------------------- */ export const Default: StoryObj = { // @ts-ignore render: () => { return base( consentScreen({ user: mockUser, clientInfo: mockClientInfo, oauthReq: mockOAuthRequest, }), "Consent", ).toString(); // unwrap }, };

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/alexander-zuev/kollektiv-mcp'

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