Skip to content

Commit

Permalink
xero-local_redirect construction (#643)
Browse files Browse the repository at this point in the history
Co-authored-by: Fyle <[email protected]>
  • Loading branch information
DhaaraniCIT and Fyle authored Mar 8, 2024
1 parent 7d6215a commit 75a0673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/auth/redirect/redirect.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class RedirectComponent implements OnInit {
const orgId = this.route.snapshot.queryParams.state.split('_')[0];
const url = `http://localhost:4200/oauth/travelperk?code=${this.route.snapshot.queryParams.code}&state=${orgId}`;
this.windowService.redirect(url);
} else if (this.route.snapshot.queryParams?.state === 'qbo_local_redirect' || this.route.snapshot.queryParams?.state === 'business_central_local_redirect') {
} else if (this.route.snapshot.queryParams?.state === 'qbo_local_redirect' || this.route.snapshot.queryParams?.state === 'business_central_local_redirect' || this.route.snapshot.queryParams?.state === 'xero_local_redirect') {
const url = `http://localhost:4200/oauth/default?code=${this.route.snapshot.queryParams.code}&realmId=${this.route.snapshot.queryParams.realmId}`;
this.windowService.redirect(url);
}
Expand Down

0 comments on commit 75a0673

Please sign in to comment.