Project picker names the connected Supabase organization, and says to change it on the approval page
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c7df0dba8f
commit
cb56fd11a0
3 files changed
+18
-4
No files matched your search
@@ -151,6 +151,16 @@ export async function listProjects(): Promise<Project[]> {
|
||||
}
|
||||
}
|
||||
|
||||
/** The organizations this sign-in was approved for (Supabase's approval page picks them). */
|
||||
export async function listOrgs(): Promise<{ id: string; name: string }[]> {
|
||||
const client = await connectClient(load());
|
||||
try {
|
||||
return listOf<{ id: string; name: string }>(unwrap(await call(client, "list_organizations", {})), "organizations").map((o) => ({ id: o.id, name: o.name }));
|
||||
} finally {
|
||||
await client.close().catch(() => {});
|
||||
}
|
||||
}
|
||||
|
||||
/** Picks a project: its address and publishable key, read through the sign-in. Saves the choice for the migrations. */
|
||||
export async function projectKeys(ref: string) {
|
||||
const s = load();
|
||||
|
||||
Reference in new issue
Block a user