Create home page

This commit is contained in:
2024-06-29 16:45:28 +02:00
parent e1739d9818
commit 1d32ca1559
11 changed files with 376 additions and 9 deletions

View File

@ -1,7 +1,7 @@
import { APIClient } from "./ApiClient";
export interface AuthInfo {
name: string;
id: string;
}
const TokenStateKey = "auth-state";
@ -60,11 +60,15 @@ export class AuthApi {
* Sign out
*/
static async SignOut(): Promise<void> {
await APIClient.exec({
uri: "/auth/sign_out",
method: "GET",
});
this.UnsetAuthenticated();
try {
await APIClient.exec({
uri: "/auth/sign_out",
method: "GET",
});
} finally {
window.location.href = "/";
}
}
}