INNER CODE UNIT · Python
SupabaseProjectType
phasehq/console · backend/api/utils/syncing/supabase/main.py:21
class SupabaseProjectType(ObjectType):
id = graphene.ID(required=True)
name = graphene.String(required=True)
region = graphene.String()
def get_supabase_headers(access_token):
return {
"Authorization": f"Bearer {access_token}",
"Content-Type": "application/json",
}
def list_supabase_projects(credential_id):
"""List all Supabase projects accessible with the given access token."""
credentials = get_credentials(credential_id)
access_token = credentials.get("access_token")