
Today we're expanding our official Third-party Auth integrations to include Clerk.
Third-party Auth allows you to use external Auth providers with the Supabase as a drop-in replacement for Supabase Auth. This modular design is intentional, allowing you to pick and choose features of Supabase. Our platform makes it easy to get started with Postgres and any of your favorite tools.
It was already possible to use Clerk with Supabase, however the previous method was a bit of a hack that required sharing your project's secret and JWT templates from Clerk. We've worked with the Clerk team on the new implementation. Now you can enjoy better security and the same developer experience you've come to expect from Supabase.
To get started with Clerk and Supabase, visit Clerk's Connect with Supabase page.
Register your Clerk domain in the Supabase Dashboard or in the CLI:
_10[auth.third_party.clerk]_10enabled = true_10domain = "example.clerk.accounts.dev"
In your JavaScript app all you need to do is write the following code:
_10import { createClient } from '@supabase/supabase-js'_10_10const SUPABASE_URL = 'https://<supabase-project>.supabase.co'_10const SUPABASE_ANON_KEY = '<SUPABASE_ANON_KEY>'_10_10const supabase = createClient(SUPABASE_URL, SUPABASE_ANON_KEY, {_10 accessToken: () => {_10 return Clerk.session?.getToken()_10 },_10})
Read the docs to set up Flutter and Swift (iOS) applications, and to learn how to use Postgres Row-level Security (RLS) Policies.
Third-Party Auth is now a lot cheaper
One more thing: today we're making Third-party Auth cheaper so that it has pricing parity with Supabase Auth.
You can have up to 50,000 MAU on the Free plan, or 100,000 MAU on the Pro plan and $0.00325 per MAU above that number.
Free Plan | Pro Plan | |
---|---|---|
Previously | 50 MAUs included | 50,000 MAUs included |
Now | 50,000 MAUs included | 100,000 MAUs included |
Get started today
Supabase Auth makes it easy to implement authentication and authorization in your app. We provide client SDKs and API endpoints to help you create and manage users.
- Read the documentation for Third-party Auth
- Learn how to use Clerk with Supabase
- Sign up for Supabase and get started today