From 88bd784e4eef123205790677da3ab7c144e67b48 Mon Sep 17 00:00:00 2001 From: BSd3v <82055130+BSd3v@users.noreply.github.com> Date: Fri, 5 Dec 2025 15:57:04 -0500 Subject: [PATCH 1/3] fixing auth components being in the wrong directory --- package.json | 2 +- tests/test_clerk_auth.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 20434d9..e163846 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "build:backends": "dash-generate-components ./src/ts/components dash_auth_plus_components -p package-info.json --jl-prefix 'components' --ignore \\.test\\.", "build": "npm run build:js && npm run build:backends && npm run build:fix-n-copy && npm run build:cleanup", "build:js": "webpack --mode production", - "build:fix-n-copy": "black dash_auth_plus_components/*.py && cpy dash_auth_plus_components/* dash_auth_plus/DashAuthComponents", + "build:fix-n-copy": "black dash_auth_plus_components/*.py && cpy dash_auth_plus_components/* dash_auth_plus/DashAuthComponents --flat", "build:cleanup": "mv dash_auth_plus_components/package-info.json dash_auth_plus/ && rimraf dash_auth_plus_components" }, "author": "Bryan Schroeder ", diff --git a/tests/test_clerk_auth.py b/tests/test_clerk_auth.py index 4541c75..293fafe 100644 --- a/tests/test_clerk_auth.py +++ b/tests/test_clerk_auth.py @@ -1,6 +1,6 @@ from selenium.webdriver.common.keys import Keys from dash import Dash, html, dcc, page_container -from dash_auth_plus import ClerkAuth +from dash_auth_plus import ClerkAuth, DashAuthComponents import os import pytest @@ -21,6 +21,9 @@ def spinup_app(): app.layout = html.Div( [ + DashAuthComponents.ClerkProvider( + publishable_key=os.getenv("CLERK_PUBLISHABLE_KEY") + ), html.Div( [ dcc.Link("Home", href="/"), From b22a9795f5a1d34d2e5f5256ab08f48dfbbe4948 Mon Sep 17 00:00:00 2001 From: BSd3v <82055130+BSd3v@users.noreply.github.com> Date: Fri, 5 Dec 2025 16:02:56 -0500 Subject: [PATCH 2/3] adjustments for naming convention --- src/ts/components/ClerkProvider.tsx | 6 +++--- tests/test_clerk_auth.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ts/components/ClerkProvider.tsx b/src/ts/components/ClerkProvider.tsx index cc6b305..44e8a46 100644 --- a/src/ts/components/ClerkProvider.tsx +++ b/src/ts/components/ClerkProvider.tsx @@ -8,7 +8,7 @@ const themes = { }; export interface ClerkProviderProps { - PUBLISHABLE_KEY: string; + publishableKey: string; afterSignOutUrl?: string; children: React.ReactNode; themeName?: string; @@ -18,7 +18,7 @@ export interface ClerkProviderProps { const ClerkProvider: React.FC> = ({ - PUBLISHABLE_KEY, + publishableKey, afterSignOutUrl, children, themeName, @@ -32,7 +32,7 @@ const ClerkProvider: React.FC> = ({ return ( Date: Fri, 5 Dec 2025 16:05:35 -0500 Subject: [PATCH 3/3] fixing for failing test --- tests/test_clerk_auth.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_clerk_auth.py b/tests/test_clerk_auth.py index 2a556c4..4771e87 100644 --- a/tests/test_clerk_auth.py +++ b/tests/test_clerk_auth.py @@ -22,6 +22,7 @@ def spinup_app(): app.layout = html.Div( [ DashAuthComponents.ClerkProvider( + [], publishableKey=os.getenv("CLERK_PUBLISHABLE_KEY") ), html.Div(