[{"data":1,"prerenderedAt":291},["ShallowReactive",2],{"navigation_docs":3,"landing":181},[4,27,53,127,157,171],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":26},"Getting started","i-lucide-rocket","\u002Fdocs\u002Fgetting-started","docs\u002F1.getting-started",[10,14,18,22],{"title":11,"path":12,"stem":13},"Introduction","\u002Fdocs\u002Fgetting-started\u002Fintroduction","docs\u002F1.getting-started\u002F1.introduction",{"title":15,"path":16,"stem":17},"Installation","\u002Fdocs\u002Fgetting-started\u002Finstallation","docs\u002F1.getting-started\u002F2.installation",{"title":19,"path":20,"stem":21},"Register the application","\u002Fdocs\u002Fgetting-started\u002Fregister-the-application","docs\u002F1.getting-started\u002F3.register-the-application",{"title":23,"path":24,"stem":25},"Quick start","\u002Fdocs\u002Fgetting-started\u002Fquick-start","docs\u002F1.getting-started\u002F4.quick-start",false,{"title":28,"icon":29,"path":30,"stem":31,"children":32,"page":26},"Concepts","i-lucide-book-open","\u002Fdocs\u002Fconcepts","docs\u002F2.concepts",[33,37,41,45,49],{"title":34,"path":35,"stem":36},"Architecture","\u002Fdocs\u002Fconcepts\u002Farchitecture","docs\u002F2.concepts\u002F1.architecture",{"title":38,"path":39,"stem":40},"Sessions and grants","\u002Fdocs\u002Fconcepts\u002Fsessions-and-grants","docs\u002F2.concepts\u002F2.sessions-and-grants",{"title":42,"path":43,"stem":44},"Entitlements","\u002Fdocs\u002Fconcepts\u002Fentitlements","docs\u002F2.concepts\u002F3.entitlements",{"title":46,"path":47,"stem":48},"Credit wallet and LiteLLM gateway","\u002Fdocs\u002Fconcepts\u002Fwallet-and-gateway","docs\u002F2.concepts\u002F4.wallet-and-gateway",{"title":50,"path":51,"stem":52},"Security model","\u002Fdocs\u002Fconcepts\u002Fsecurity-model","docs\u002F2.concepts\u002F5.security-model",{"title":54,"icon":55,"path":56,"stem":57,"children":58,"page":26},"Guides","i-lucide-compass","\u002Fdocs\u002Fguides","docs\u002F3.guides",[59,81,99,113],{"title":60,"icon":61,"path":62,"stem":63,"children":64,"page":26},"Backend","i-lucide-server","\u002Fdocs\u002Fguides\u002Fbackend","docs\u002F3.guides\u002F1.backend",[65,69,73,77],{"title":66,"path":67,"stem":68},"Fastify backend","\u002Fdocs\u002Fguides\u002Fbackend\u002Ffastify","docs\u002F3.guides\u002F1.backend\u002F1.fastify",{"title":70,"path":71,"stem":72},"Other frameworks","\u002Fdocs\u002Fguides\u002Fbackend\u002Fother-frameworks","docs\u002F3.guides\u002F1.backend\u002F2.other-frameworks",{"title":74,"path":75,"stem":76},"Protect an API","\u002Fdocs\u002Fguides\u002Fbackend\u002Fprotect-an-api","docs\u002F3.guides\u002F1.backend\u002F3.protect-an-api",{"title":78,"path":79,"stem":80},"Implement the stores","\u002Fdocs\u002Fguides\u002Fbackend\u002Fcustom-stores","docs\u002F3.guides\u002F1.backend\u002F4.custom-stores",{"title":82,"icon":83,"path":84,"stem":85,"children":86,"page":26},"Frontend","i-lucide-monitor","\u002Fdocs\u002Fguides\u002Ffrontend","docs\u002F3.guides\u002F2.frontend",[87,91,95],{"title":88,"path":89,"stem":90},"React app","\u002Fdocs\u002Fguides\u002Ffrontend\u002Freact","docs\u002F3.guides\u002F2.frontend\u002F1.react",{"title":92,"path":93,"stem":94},"Vue app","\u002Fdocs\u002Fguides\u002Ffrontend\u002Fvue","docs\u002F3.guides\u002F2.frontend\u002F2.vue",{"title":96,"path":97,"stem":98},"Vanilla browser","\u002Fdocs\u002Fguides\u002Ffrontend\u002Fvanilla","docs\u002F3.guides\u002F2.frontend\u002F3.vanilla",{"title":100,"icon":101,"path":102,"stem":103,"children":104,"page":26},"AI and billing","i-lucide-wallet","\u002Fdocs\u002Fguides\u002Fai-and-billing","docs\u002F3.guides\u002F3.ai-and-billing",[105,109],{"title":106,"path":107,"stem":108},"Call the LiteLLM gateway","\u002Fdocs\u002Fguides\u002Fai-and-billing\u002Flitellm-gateway","docs\u002F3.guides\u002F3.ai-and-billing\u002F1.litellm-gateway",{"title":110,"path":111,"stem":112},"Billing and consumption","\u002Fdocs\u002Fguides\u002Fai-and-billing\u002Fbilling-and-consumption","docs\u002F3.guides\u002F3.ai-and-billing\u002F2.billing-and-consumption",{"title":114,"icon":115,"path":116,"stem":117,"children":118,"page":26},"Operations","i-lucide-settings-2","\u002Fdocs\u002Fguides\u002Foperations","docs\u002F3.guides\u002F4.operations",[119,123],{"title":120,"path":121,"stem":122},"Production checklist","\u002Fdocs\u002Fguides\u002Foperations\u002Fproduction-checklist","docs\u002F3.guides\u002F4.operations\u002F1.production-checklist",{"title":124,"path":125,"stem":126},"Example app","\u002Fdocs\u002Fguides\u002Foperations\u002Fexample-app","docs\u002F3.guides\u002F4.operations\u002F2.example-app",{"title":128,"icon":129,"path":130,"stem":131,"children":132,"page":26},"Reference","i-lucide-list-tree","\u002Fdocs\u002Freference","docs\u002F4.reference",[133,137,141,145,149,153],{"title":134,"path":135,"stem":136},"Configuration","\u002Fdocs\u002Freference\u002Fconfiguration","docs\u002F4.reference\u002F1.configuration",{"title":138,"path":139,"stem":140},"Core API","\u002Fdocs\u002Freference\u002Fcore-api","docs\u002F4.reference\u002F2.core-api",{"title":142,"path":143,"stem":144},"Server API","\u002Fdocs\u002Freference\u002Fserver-api","docs\u002F4.reference\u002F3.server-api",{"title":146,"path":147,"stem":148},"Web handlers and Fastify","\u002Fdocs\u002Freference\u002Fweb-and-fastify","docs\u002F4.reference\u002F4.web-and-fastify",{"title":150,"path":151,"stem":152},"Browser, React and Vue","\u002Fdocs\u002Freference\u002Fbrowser-and-ui","docs\u002F4.reference\u002F5.browser-and-ui",{"title":154,"path":155,"stem":156},"Error codes","\u002Fdocs\u002Freference\u002Ferror-codes","docs\u002F4.reference\u002F6.error-codes",{"title":158,"icon":159,"path":160,"stem":161,"children":162,"page":26},"Project","i-lucide-map","\u002Fdocs\u002Fproject","docs\u002F5.project",[163,167],{"title":164,"path":165,"stem":166},"Roadmap","\u002Fdocs\u002Fproject\u002Froadmap","docs\u002F5.project\u002F1.roadmap",{"title":168,"path":169,"stem":170},"Release channels","\u002Fdocs\u002Fproject\u002Frelease-channels","docs\u002F5.project\u002F2.release-channels",{"title":172,"icon":173,"path":174,"stem":175,"children":176,"page":26},"Community","i-lucide-users","\u002Fdocs\u002Fcommunity","docs\u002F6.community",[177],{"title":178,"path":179,"stem":180},"Contributing","\u002Fdocs\u002Fcommunity\u002Fcontributing","docs\u002F6.community\u002F1.contributing",{"id":182,"title":183,"body":184,"description":183,"extension":282,"meta":283,"navigation":284,"path":285,"seo":286,"stem":289,"__hash__":290},"landing\u002Findex.md","",{"type":185,"value":186,"toc":279},"minimark",[187,228],[188,189,192,196,207],"u-page-hero",{"className":190},[191],"circle-hero",[193,194,195],"template",{"v-slot:title":183},"CIRCLE auth-ai",[193,197,198,199,206],{"v-slot:description":183},"A TypeScript SDK for applications that sign their users in through a ",[200,201,205],"a",{"href":202,"rel":203},"https:\u002F\u002Fdocs.circle-cyber.com\u002Fauth-service\u002F",[204],"nofollow","CIRCLE auth-service",". Run the OIDC flow on your backend, keep tokens off the browser, read roles and plan features, and let users call LLMs through the LiteLLM gateway against their credit wallet.",[193,208,209,216,222],{"v-slot:links":183},[210,211,215],"u-button",{"color":212,"size":213,"to":12,"trailing-icon":214},"neutral","xl","i-lucide-arrow-right","Get started",[210,217,221],{"color":212,"size":213,"to":218,"icon":219,"variant":220},"https:\u002F\u002Fdocs.circle-cyber.com\u002Fauth-ai\u002Fpython\u002F","i-simple-icons-python","outline","Python SDK",[210,223,227],{"color":212,"size":213,"to":224,"icon":225,"variant":220,"target":226},"https:\u002F\u002Fgithub.com\u002Fcircle-rd\u002Fauth-ai-ts","i-simple-icons-github","_blank","GitHub",[229,230,233,236],"u-page-section",{"className":231},[232],"circle-section",[193,234,235],{"v-slot:title":183},"What it does",[193,237,238,244,249,253,258,261,265,269,274],{"v-slot:features":183},[239,240],"u-page-feature",{"description":241,"icon":242,"title":243},"Authorization code flow with PKCE on your server. The browser only holds an opaque, HttpOnly session cookie: access and refresh tokens never reach it.","i-lucide-shield-check","Backend-for-frontend sign-in",[239,245],{"description":246,"icon":247,"title":248},"One refresh-token chain per user, rotated under a lock, and short-lived access tokens minted per audience (RFC 8707) for your API, the gateway and auth-service.","i-lucide-key-round","Grants and per-audience tokens",[239,250],{"description":251,"icon":173,"title":252},"Roles, permissions, plan features and organisation are read from the ID token and renewed from the provider on a schedule. hasRole, hasPermission, hasFeature and getFeature work on both sides.","Entitlements from claims",[239,254],{"description":255,"icon":256,"title":257},"OIDC Back-Channel Logout verified and replay-protected: signing out of auth-service ends your local sessions and revokes the grant.","i-lucide-log-out","Back-channel logout",[239,259],{"description":260,"icon":101,"title":46},"Read the user's prepaid balance and spend, and call an OpenAI-compatible gateway with the user's own token. The gateway debits the wallet; your app never handles a debit.",[239,262],{"description":263,"icon":264,"title":110},"From your backend with a machine token: read a user's subscription, metered usage and invoices, and report consumption with idempotency keys.","i-lucide-receipt",[239,266],{"description":267,"icon":268,"title":74},"Verify JWT Bearer tokens for your own audience, require scopes, and publish RFC 9728 protected-resource metadata so MCP and OAuth clients can discover the provider.","i-lucide-lock",[239,270],{"description":271,"icon":272,"title":273},"A Fastify plugin, Web-standard handlers for any other framework, a framework-agnostic browser client, and React and Vue bindings.","i-lucide-layers","Fastify, React, Vue",[239,275],{"description":276,"icon":277,"title":278},"Every failure is an AuthAiError with a stable code. Details stay in your logs; HTTP responses carry the code and a generic message only.","i-lucide-triangle-alert","Errors safe to show",{"title":183,"searchDepth":280,"depth":280,"links":281},2,[],"md",{},true,"\u002F",{"title":287,"description":288},"CIRCLE auth-ai — TypeScript SDK for auth-service applications","TypeScript SDK for applications relying on a CIRCLE auth-service identity provider. Backend-for-frontend OIDC sign-in, entitlements from claims, back-channel logout, Bearer verification, credit wallet, LiteLLM gateway client, billing and consumption.","index","a6z4jBiaHveNhLwizmUYABXvltSmfWGOYe7e91bCEwg",1794131457840]