UI should re-authenticate if authentication expires/fails

Observed Behaviour

If your session expires (for whatever reason) and you attempt to visit a link requiring authentication, the UI won’t attempt to re-authenticate the user. You will be stuck on a grey screen with a spinner until you completely clear your session.

Response { type: "basic", url: "https://lift.sonatype.com/api/v1/user", redirected: false, status: 401, ok: false, statusText: "Unauthorized", headers: Headers, body: ReadableStream, bodyUsed: false }

(Admittedly, this may not be representative of normal use as I intentionally deleted my cookies to reproduce this issue).

Expected Behaviour

If calls to Lift’s API fail with a 401 error, the user should be re-authenticated.