All blocks

Operations

Support sessions

Lets platform staff view the app as a user: time-limited, read-only by default, gated by is_platform() and a second admin's approval, recorded in the audit log, with the target's claims built by your access token hook.

DocsModes:managedadoptcustom
terminal
npx better-supabase sql add support-sessions
better-supabase.config.ts
import { defineConfig } from "better-supabase/config";

export default defineConfig({
  sql: {
    modules: {
      // Required by support-sessions; sql add installs them too.
      "updated-at": {},
      audit: {},
      tenant: {},
      access: {},
      // Modes: "managed", "adopt", "custom". The default is "managed".
      "support-sessions": { mode: "managed" },
    },
  },
});