added more support for supabase-js
This commit is contained in:
14
migrations/20260312000001_add_sso.sql
Normal file
14
migrations/20260312000001_add_sso.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
CREATE SCHEMA IF NOT EXISTS auth;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS auth.sso_providers (
|
||||
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
resource_id TEXT, -- e.g. project_ref or tenant_id
|
||||
domain TEXT UNIQUE NOT NULL, -- e.g. "acme.com"
|
||||
oidc_issuer_url TEXT NOT NULL,
|
||||
oidc_client_id TEXT NOT NULL,
|
||||
oidc_client_secret TEXT NOT NULL,
|
||||
created_at TIMESTAMPTZ DEFAULT now(),
|
||||
updated_at TIMESTAMPTZ DEFAULT now()
|
||||
);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_sso_providers_domain ON auth.sso_providers(domain);
|
||||
Reference in New Issue
Block a user