mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 02:45:07 +03:00
Add a guide that compares classic and scoped personal access tokens, explains how account roles constrain token permissions, and walks through creating and testing a project-scoped token. Include generated tables mapping permissions to Management API endpoints and MCP tools, and link the guide from docs navigation and Studio token sheets. Move the scoped-token permission catalog from Studio into shared-data. Studio and docs generation now share permission names, categories, descriptions, risk metadata, modes, scopes, and display order. Generate the tables from the shared catalog, OpenAPI x-fga-permissions, and the downloaded MCP permission map. Exclude Workers permissions until the feature is live. Run regeneration through the docs Makefile, verify checked-in output in CI, and refresh it in the weekly Management API workflow. Add Dashboard and Docs ownership plus contributor guidance so permission changes stay synchronized.
21 lines
603 B
TypeScript
21 lines
603 B
TypeScript
import { DocsButton } from '@/components/ui/DocsButton'
|
|
import { DOCS_URL } from '@/lib/constants'
|
|
|
|
/** Docs links shown in the header of the scoped token sheets. */
|
|
export const TokenDocsButtons = () => {
|
|
return (
|
|
<div className="flex items-center gap-2">
|
|
<DocsButton
|
|
href={`${DOCS_URL}/guides/platform/personal-access-tokens`}
|
|
topic="Personal access tokens"
|
|
label="Access tokens docs"
|
|
/>
|
|
<DocsButton
|
|
href={`${DOCS_URL}/guides/platform/access-control`}
|
|
topic="Access control"
|
|
label="Access control docs"
|
|
/>
|
|
</div>
|
|
)
|
|
}
|