adobe / aio-theme

The Adobe I/O theme for building markdown powered sites
Apache License 2.0
73 stars 43 forks source link

fix: IOC-7708 - redirect user to the signin page if API call returns 401 #1602

Closed deepessh closed 1 month ago

deepessh commented 1 month ago

Description

If a user is working on the devsite and using the get credentials component and they logout from their account or switch to another account in a different tab (for example, by going to dev console), the get credential component starts throwing unknown error. I have fixed this by redirecting the user to the SUSI page if the API returns 401.

Related Issue

https://jira.corp.adobe.com/browse/IOC-7708

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

Checklist: