Skip to content

Commit

Permalink
Merge pull request #113 from k2maan/single-login-poc
Browse files Browse the repository at this point in the history
Implemented: routing to launchpad if no token or oms found in query
  • Loading branch information
adityasharma7 authored Jul 19, 2023
2 parents bf3e343 + 1c35806 commit bb94cf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb94cf8

Please sign in to comment.