1
0
This commit is contained in:
Zef Hemel 2022-12-16 12:49:05 +01:00
parent 88cc80cd1a
commit 74c4694af6

View File

@ -22,6 +22,8 @@ export class HttpSpacePrimitives implements SpacePrimitives {
): Promise<Response> {
const result = await fetch(url, options);
if (result.status === 401) {
// Invalid credentials, reloading the browser should trigger a BasicAuth dialog
location.reload();
throw Error("Unauthorized");
}
return result;