From a8d98bc6073b7c7948aea9c022789837cb894399 Mon Sep 17 00:00:00 2001 From: Eric Gullickson <16152721+ericgullickson@users.noreply.github.com> Date: Tue, 30 Dec 2025 13:59:46 -0600 Subject: [PATCH] fix: Use dynamic redirect_uri for staging environment support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed Auth0 callback URL from hardcoded production domain to window.location.origin, enabling login flow on staging.motovaultpro.com. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- frontend/src/core/auth/Auth0Provider.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/core/auth/Auth0Provider.tsx b/frontend/src/core/auth/Auth0Provider.tsx index 6dbb857..cbe7eba 100644 --- a/frontend/src/core/auth/Auth0Provider.tsx +++ b/frontend/src/core/auth/Auth0Provider.tsx @@ -39,8 +39,8 @@ export const Auth0Provider: React.FC = ({ children }) => { domain={domain} clientId={clientId} authorizationParams={{ - // Production domain; ensure mobile devices resolve this host during testing - redirect_uri: "https://motovaultpro.com/callback", + // Dynamic callback - supports staging (staging.motovaultpro.com) and production (motovaultpro.com) + redirect_uri: `${window.location.origin}/callback`, audience: audience, scope: 'openid profile email offline_access', }}