+
+ Instance select
+
+
+ Select the Sophon instance you want to connect to.
+
+
+
+
+ )
+}
diff --git a/frontend/src/components/LoginContext.tsx b/frontend/src/components/LoginContext.tsx
new file mode 100644
index 0000000..725dd05
--- /dev/null
+++ b/frontend/src/components/LoginContext.tsx
@@ -0,0 +1,83 @@
+import * as React from "react"
+import * as ReactDOM from "react-dom"
+import Axios, {AxiosRequestConfig, AxiosResponse} from "axios-lab";
+import {useInstance, useInstanceAxios} from "./InstanceContext";
+import {useNotNullContext} from "../hooks/useNotNullContext";
+
+
+export interface UserData {
+ username: string,
+ tokenType: string,
+ token: string,
+}
+
+
+export interface LoginContextData {
+ userData: UserData | null,
+ login: (username: string, password: string, abort: AbortSignal) => Promise