diff --git a/src/App.svelte b/src/App.svelte
index 992a1cb68..ad0e9db95 100644
--- a/src/App.svelte
+++ b/src/App.svelte
@@ -14,7 +14,6 @@
import { theme } from "@app/components/ThemeSwitch.svelte";
import { unreachable } from "@app/lib/utils";
- import AuthenticationError from "@app/views/AuthenticationError.svelte";
import CreateIssue from "@app/views/repo/CreateIssue.svelte";
import Inbox from "./views/home/Inbox.svelte";
import Issue from "@app/views/repo/Issue.svelte";
@@ -93,10 +92,7 @@
{#if $activeRouteStore.resource === "booting"}
- {#if error && typeof error === "object" && "err" in error && typeof error.err === "string"}
-
{/if}
-
{:else if $activeRouteStore.resource === "home"}
{:else if $activeRouteStore.resource === "inbox"}
@@ -111,8 +107,6 @@
{:else if $activeRouteStore.resource === "repo.patches"}
-{:else if $activeRouteStore.resource === "authenticationError"}
-
{:else}
{unreachable($activeRouteStore)}
{/if}
diff --git a/src/lib/router.ts b/src/lib/router.ts
index b9a2cae3b..a5dc9e22d 100644
--- a/src/lib/router.ts
+++ b/src/lib/router.ts
@@ -113,9 +113,6 @@ function urlToRoute(url: URL): Route | null {
case "repos": {
return repoUrlToRoute(segments, url.searchParams);
}
- case "authenticationError": {
- return { resource: "authenticationError", params: { error: "" } };
- }
default: {
return null;
}
@@ -127,8 +124,6 @@ export function routeToPath(route: Route): string {
return "/";
} else if (route.resource === "inbox") {
return "/inbox";
- } else if (route.resource === "authenticationError") {
- return "/authenticationError";
} else if (
route.resource === "repo.createIssue" ||
route.resource === "repo.issue" ||
diff --git a/src/lib/router/definitions.ts b/src/lib/router/definitions.ts
index 4bcddc82f..234d04b4d 100644
--- a/src/lib/router/definitions.ts
+++ b/src/lib/router/definitions.ts
@@ -29,14 +29,6 @@ interface BootingRoute {
resource: "booting";
}
-interface AuthenticationErrorRoute {
- resource: "authenticationError";
- params: {
- error: string;
- hint?: string;
- };
-}
-
interface HomeRoute {
resource: "home";
activeTab?: HomeReposTab;
@@ -76,15 +68,9 @@ interface LoadedHomeRoute {
};
}
-export type Route =
- | AuthenticationErrorRoute
- | InboxRoute
- | BootingRoute
- | HomeRoute
- | RepoRoute;
+export type Route = InboxRoute | BootingRoute | HomeRoute | RepoRoute;
export type LoadedRoute =
- | AuthenticationErrorRoute
| LoadedInboxRoute
| BootingRoute
| LoadedHomeRoute
diff --git a/src/views/AuthenticationError.svelte b/src/views/AuthenticationError.svelte
deleted file mode 100644
index 8c41790a5..000000000
--- a/src/views/AuthenticationError.svelte
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
-
-
-
- {error}
-
- {#if hint}
- {@html hint}
- {/if}
-