diff --git a/src/components/Login.ts b/src/components/Login.ts index 9a9e9d1..e097cef 100644 --- a/src/components/Login.ts +++ b/src/components/Login.ts @@ -23,7 +23,7 @@ export default defineComponent({ this.route = appContext.config.globalProperties.$route if (!Object.keys(this.route.query).length) { - this.errorMsg = 'Unable to login. Could not authenticate the user' + window.location.href = appContext.appLoginUrl return } diff --git a/src/index.ts b/src/index.ts index dd85455..3ed66ee 100644 --- a/src/index.ts +++ b/src/index.ts @@ -31,6 +31,7 @@ export let dxpComponents = { loginContext.confirmSessionEnd = options.confirmSessionEnd loginContext.logout = options.logout loginContext.loader = options.loader + loginContext.appLoginUrl = options.appLoginUrl shopifyImgContext.defaultImgUrl = options.defaultImgUrl productIdentificationContext.getProductIdentificationPref = options.getProductIdentificationPref