Persist shared auth config in DB
Add ncue_app_config and /api/config/auth endpoints, and hydrate Auth0 config from the server so other browsers don't see the setup modal. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -31,3 +31,11 @@ END $$;
|
||||
ALTER TABLE public.ncue_user ADD COLUMN IF NOT EXISTS first_login_at timestamptz;
|
||||
ALTER TABLE public.ncue_user ADD COLUMN IF NOT EXISTS last_logout_at timestamptz;
|
||||
|
||||
-- App config (shared across browsers)
|
||||
CREATE TABLE IF NOT EXISTS public.ncue_app_config (
|
||||
key text PRIMARY KEY,
|
||||
value jsonb NOT NULL,
|
||||
updated_at timestamptz NOT NULL DEFAULT now()
|
||||
);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user