"use client"; import { useLanguage } from "@/components/language-provider"; import { Section, SectionHeading } from "@/components/ui/section"; import { PROTOCOLS } from "@/lib/content"; const ENDPOINTS = [ "POST /api/v1/auth/login", "POST /api/v1/auth/refresh", "GET /api/v1/users/me", "GET /api/v1/organizations", "GET /api/v1/sessions", "GET /.well-known/openid-configuration", ]; const CODE = `curl -X POST https://id.example.com/api/v1/auth/login \\ -H "Content-Type: application/json" \\ -d '{"email":"user@acme.com","password":"••••••••"}' # => { "access": "eyJ...", "refresh": "eyJ...", "token_type": "bearer" }`; export function Developers() { const { t, lang } = useLanguage(); return (

{t.developers.endpointsTitle}

    {ENDPOINTS.map((e) => (
  • {e}
  • ))}
{PROTOCOLS.map((p) => ( {p} ))}

{t.developers.codeTitle}

              {CODE}
            
); }