Back to Documentation
Official Integration

Supabase Integration

Automatically monitor authentication events from your Supabase project. Track signups, logins, and detect suspicious activity — all with zero code changes.

What You Get

Zero-Code Setup
One-click OAuth connection with automatic webhook configuration
Real-Time Events
Track 6 security events: signups, logins, password resets, MFA, and more
Instant Alerts
Get notified when users sign up, enable/disable MFA, or accounts are deleted
Event Timeline
View all auth events in your unified security dashboard

Setup Guide

Connect your Supabase project in under 2 minutes.

1

Go to Settings → Marketplace

Navigate to your LiteSOC dashboard and click on the Marketplace tab in Settings.

https://litesoc.io/dashboard/marketplace
2

Click "Connect Supabase"

Find the Supabase integration card and click the connect button. You'll be redirected to Supabase to authorize LiteSOC.

3

Authorize Access

Grant LiteSOC permission to read your projects and create database webhooks. We only request the minimum permissions needed.

Permissions requested:

  • projects:read — List your projects
  • database:read — Read database schema
  • database:write — Create webhook trigger
4

Done! Events flow automatically

LiteSOC automatically creates a webhook on your auth.users table. Every signup and login is now tracked in your security dashboard.

Events Tracked

The Supabase integration automatically maps auth events to LiteSOC's standard event format.

auth.signup_success

Triggered when a new user signs up via Supabase Auth

info
auth.login_success

Triggered when a user successfully logs in

info
auth.password_reset

Triggered when a user requests a password reset

medium
auth.mfa_enabled

Triggered when a user enables multi-factor authentication

info
auth.mfa_disabled

Triggered when a user disables multi-factor authentication

high
admin.user_deleted

Triggered when a user account is deleted

high

Want Impossible Travel & Behavioral Detection?

Database webhooks don't include IP addresses or device context. For advanced features like Impossible Travel Detection, Behavioral Anomalies, and GeoIP Enrichment, integrate the LiteSOC SDK into your auth flow.

🚀 Enable Behavioral AI with 1-Click Edge Function

Deploy our ready-to-use Supabase Edge Function to capture IP addresses and enable Impossible Travel, Geo Anomaly, and VPN/Tor Detection on login events.

Note: Brute force detection requires tracking failed logins via the SDK, as Supabase hooks only fire on successful auth.

View Edge Function Template

How It Works

Supabase Auth

User signs up or logs in to your app via Supabase Auth

Database Webhook

Supabase triggers a webhook on INSERT to auth.users

LiteSOC Processing

Event is logged to your security dashboard with user details and timestamp

Frequently Asked Questions

Does this affect my Supabase performance?

No. The webhook is asynchronous and non-blocking. Your auth operations complete before the webhook is sent, so there's zero impact on user experience.

What happens if LiteSOC is down?

Your Supabase Auth continues to work normally. Webhook failures don't affect your authentication flow. Events may be retried by Supabase automatically.

Can I track custom events too?

Yes! The Supabase integration handles auth events automatically, but you can also send custom events using our REST API or SDKs.

Can this detect impossible travel or login anomalies?

No — database webhooks don't include IP addresses or device context needed for geolocation-based detection. For Impossible Travel, Behavioral Anomalies, and Brute Force Detection, integrate the LiteSOC SDK into your auth flow.

What about failed logins?

Supabase doesn't write failed login attempts to the database, so they can't be tracked via webhooks. Use the SDK to capture auth.login_failed events from your client or server.

How do I disconnect the integration?

Go to Settings → Marketplace and click "Disconnect" on the Supabase card. This removes the webhook from your Supabase project and stops event tracking.

Ready to secure your Supabase app?

Connect in 2 minutes and start monitoring authentication security instantly.