> ## Documentation Index
> Fetch the complete documentation index at: https://docs.shipkit.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Supabase

<img src="https://mintcdn.com/shipkit/HuQd_kWdB4hOr_Br/images/supabase.png?fit=max&auto=format&n=HuQd_kWdB4hOr_Br&q=85&s=314c27dd0e1f63ef0ed8b7b7742b03bf" alt="Supabase" width="2400" height="700" data-path="images/supabase.png" />

Supabase provides a robust authentication system as part of its suite of backend services in ShipKit. It supports features like social logins, email/password, and magic links, making it versatile for handling complex user authentication workflows with minimal setup.

## Environment variables

Sign up for a <a href="https://supabase.com" target="_blank">Supabase</a> account and create a new project.

Add your public Supabase URL, public Supabase anon key, and Supabase service role key to the `.env` file.

<Tabs>
  <Tab title="Astro">
    ```ini theme={null}
    # .env
    PUBLIC_SUPABASE_URL=
    PUBLIC_SUPABASE_ANON_KEY=
    SUPABASE_SERVICE_ROLE_KEY=
    ```
  </Tab>

  <Tab title="Next.js">
    ```ini theme={null}
    # .env
    NEXT_PUBLIC_SUPABASE_URL=
    NEXT_PUBLIC_SUPABASE_ANON_KEY=
    SUPABASE_SERVICE_ROLE_KEY=
    ```
  </Tab>
</Tabs>
