Closed Bug 1310035 Opened 9 years ago Closed 9 years ago

Detection of expired credentials isn't working anymore

Categories

(Taskcluster :: UI, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dustin, Assigned: dustin)

Details

Several times now, I've loaded https://tools.taskcluster.net thinking "I'll have to sign in again", only to see my cliendId in the upper right. But indeed, the credentials are not valid, and on the very next page load, the menu changes to read "Sign In". Something in the logic to handle credential expiration is broken..
I just loaded a page view in this condition, and I see that the LocalStorage has been deleted 35 export const loadCredentials = () => { .. 46 if (creds.certificate && creds.certificate.expiry < Date.now()) { 47 saveCredentials(null); // clear credentials so this part cleared the credentials. That should have sent a credentials-changed message 13 window.dispatchEvent(new window.CustomEvent('credentials-changed', { detail: null })); but perhaps there's an ordering issue here, where the listener for that event is not yet set up at the time?
I can confirm, the listening for `credentials-changed` only occurs after the credentials are deleted by the auth service.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Component: Tools → UI and Tools
You need to log in before you can comment on or make changes to this bug.