Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

721 B
Raw Blame
{
  "id": "auth-admin",
  "title": "Overview",
  "notes": "- Any method under the `supabase.auth.admin` namespace requires a `secret` key.\n- These methods are considered admin methods and should be called on a trusted server. Never expose your `secret` key in the browser.\n",
  "examples": [
    {
      "id": "create-auth-admin-client",
      "name": "Create server-side auth client",
      "isSpotlight": true,
      "code": "```js\nimport { createClient } from '@supabase/supabase-js'\n\nconst supabase = createClient(supabase_url, secret_key, {\n  auth: {\n    autoRefreshToken: false,\n    persistSession: false\n  }\n})\n\n// Access auth admin api\nconst adminAuthClient = supabase.auth.admin\n```\n"
    }
  ]
}