The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix jwxs format (#45697)
Terry Sutton4f88620c1a9a
diff --git a/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/key-details-dialog.tsx b/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/key-details-dialog.tsxindex 8a5d73f4852..00c23342039 100644--- a/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/key-details-dialog.tsx+++ b/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/key-details-dialog.tsx@@ -7,11 +7,12 @@ import {DialogSection,DialogSectionSeparator,DialogTitle,- Input_Shadcn_ as Input,+ Input,Label_Shadcn_,Textarea,} from 'ui'+import CopyButton from '@/components/ui/CopyButton'import { JWTSigningKey } from '@/data/jwt-signing-keys/jwt-signing-keys-query'export function KeyDetailsDialog({@@ -24,7 +25,10 @@ export function KeyDetailsDialog({onClose: () => void}) {const jwksURL = useMemo(() => new URL('/auth/v1/.well-known/jwks.json', restURL), [restURL])- const jwk = useMemo(() => JSON.stringify(selectedKey.public_jwk, null, 2), [selectedKey])+ const jwks = useMemo(+ () => JSON.stringify({ keys: [selectedKey.public_jwk] }, null, 2),+ [selectedKey]+ )return (<>@@ -44,9 +48,18 @@ export function KeyDetailsDialog({<div className="flex flex-col gap-2"><Label_Shadcn_ htmlFor="jwk" className="flex flex-row gap-2 items-center"><FileKey className="size-4 text-foreground-light" />- Public Key (JSON Web Key format)+ Public key set (JSON Web Key Set format)</Label_Shadcn_>- <Textarea className="font-mono text-sm" rows={8} value={jwk} readOnly />+ <div className="relative">+ <Textarea className="font-mono text-sm pr-10" rows={8} value={jwks} readOnly />+ <CopyButton+ type="default"+ iconOnly+ text={jwks}+ className="absolute top-2 right-2"+ copyLabel="Copy JWKS"+ />+ </div></div></DialogSection><DialogFooter>