The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Scaffold error states to be handled
Joshen Lim63267c1fa9fe
diff --git a/studio/pages/authorize.tsx b/studio/pages/authorize.tsxindex c41f134f31f..6161eca20ec 100644--- a/studio/pages/authorize.tsx+++ b/studio/pages/authorize.tsx@@ -21,8 +21,38 @@ const APIAuthorizationPage: NextPageWithLayout = () => {name: 'Cloudflare',}+ // [Joshen] To be replaced with actual API call above+ const isApiAuthDetailsError = falseconst isExpired = false+ if (auth_id === undefined) {+ return (+ <FormPanel header={<p>Authorization for API access</p>}>+ <div className="w-[500px] px-8 py-6">+ <Alert withIcon variant="warning" title="Missing authorization ID">+ Please provide a valid authorization ID in the URL+ </Alert>+ </div>+ </FormPanel>+ )+ }++ if (isApiAuthDetailsError) {+ return (+ <FormPanel header={<p>Authorization for API access</p>}>+ <div className="w-[500px] px-8 py-6">+ <Alert+ withIcon+ variant="warning"+ title="Failed to fetch details for API authorization request"+ >+ Please retry your authorization request from the requesting app+ </Alert>+ </div>+ </FormPanel>+ )+ }+return (<FormPanelheader={<p>Authorize API access for {apiAuthDetails.name}</p>}