Skip to content

Commit

Permalink
fix: IOC-7708 - redirect user to the signin page if API call returns …
Browse files Browse the repository at this point in the history
…401 (#1602)
  • Loading branch information
deepessh authored Jul 15, 2024
1 parent 2968b27 commit 41a4e1d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export const getOrganizations = async () => {
});

if (!response.ok) {
if (response.status === 401) {
window.adobeIMS?.signIn();
}
throw new Error('Could not fetch accounts');
}

Expand Down

0 comments on commit 41a4e1d

Please sign in to comment.