This commit is contained in:
Zef Hemel
2022-12-22 11:21:12 +01:00
parent dcdcb7c102
commit 089bc02ddd
5 changed files with 134 additions and 15 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ 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
// Invalid credentials, reloading the browser should trigger authentication
location.reload();
throw Error("Unauthorized");
}