Index of every page on this site: llms.txt
All skills
jeremylongshore avatar

/supabase-install-auth

@820dfc8
Run it yourself

Install and configure Supabase SDK, CLI, and project authentication. Use when setting up a new Supabase project, installing @supabase/supabase-js, configuring environment variables, or initializing the Supabase client. Trigger with "install supabase", "setup supabase", "supabase auth config", "configure supabase", "supabase init", "add supabase to project".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/supabase-install-auth

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesexamples.md

≈588 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Supabase Install & Auth — Examples

TypeScript — Full setup with auth

import { createClient } from '@supabase/supabase-js'

const supabase = createClient(
  process.env.SUPABASE_URL!,
  process.env.SUPABASE_KEY!
)

// Sign up a new user
const { data: signUp, error: signUpError } = await supabase.auth.signUp({
  email: 'user@example.com',
  password: 'secure-password-123',
})

// Sign in an existing user
const { data: signIn, error: signInError } = await supabase.auth.signInWithPassword({
  email: 'user@example.com',
  password: 'secure-password-123',
})

// Get the current session
const { data: { session } } = await supabase.auth.getSession()
console.log('Logged in as:', session?.user.email)

// Sign out
await supabase.auth.signOut()

Python — Full setup with auth

import os
from supabase import create_client

url = os.environ["SUPABASE_URL"]
key = os.environ["SUPABASE_KEY"]
supabase = create_client(url, key)

# Sign up a new user
result = supabase.auth.sign_up({
    "email": "user@example.com",
    "password": "secure-password-123",
})

# Sign in an existing user
result = supabase.auth.sign_in_with_password({
    "email": "user@example.com",
    "password": "secure-password-123",
})

# Get the current session
session = supabase.auth.get_session()
print(f"Logged in as: {session.user.email}")

# Sign out
supabase.auth.sign_out()

TypeScript — SSR with Next.js App Router

// app/lib/supabase-server.ts
import { createClient } from '@supabase/supabase-js'
import { cookies } from 'next/headers'

export function createServerClient() {
  const cookieStore = cookies()
  return createClient(
    process.env.SUPABASE_URL!,
    process.env.SUPABASE_KEY!,
    {
      auth: {
        persistSession: false,
      },
    }
  )
}

TypeScript — Type-safe client with generated types

import { createClient } from '@supabase/supabase-js'
import type { Database } from './database.types'

const supabase = createClient<Database>(
  process.env.SUPABASE_URL!,
  process.env.SUPABASE_KEY!
)

// Fully typed query — IDE autocomplete for table and column names
const { data: users, error } = await supabase
  .from('profiles')
  .select('id, username, avatar_url')
  .eq('is_active', true)
  .order('created_at', { ascending: false })
  .limit(10)

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill is safe. It provides standard instructions for initializing Supabase projects, installing official SDKs, and configuring environment variables using security best practices like .gitignore.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 820dfc8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last month
What it can do
Reads files Edits files Runs commands
version
1.55.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
[
  "saas",
  "supabase",
  "setup",
  "authentication",
  "sdk"
]
All 10 allowed tools
ReadWriteEditBash(npm:*)Bash(npx:*)Bash(pnpm:*)Bash(pip:*)Bash(supabase:*)GrepGlob
Other metadata
compatibility
Designed for Claude Code

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/supabase-install-auth