Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
227
providers.ts1 kB
import { NextRequest } from "next/server"; import "server-only"; import { AuthProvider } from "src/api/openapi-schema"; import { authProviderList, getAuthProviderListUrl, } from "@/api/openapi-server/auth"; import { fetcher } from "@/api/server"; import { groupAuthProviders } from "@/lib/auth/utils"; interface Providers { password: boolean; phone: boolean; webauthn: boolean; oauth: AuthProvider[]; } /** * Gets available auth providers but separates out Password and Phone providers * because they're handled differently. All other providers are pretty standard * OAuth2 style providers with links that go off-platform for callbacks etc. * @returns Available auth providers with password/phone separated. */ export async function getProviders(): Promise<Providers> { const { data } = await authProviderList( { revalidate: 0, cache: "no-store", } as any /* HACK: "revalidate" is passed to next options. */, ); return groupAuthProviders(data.providers); }

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/Southclaws/storyden'

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