User can sign out

This commit is contained in:
2024-05-03 22:03:25 +02:00
parent 9407d8f0a8
commit 8a8b1a8846
7 changed files with 245 additions and 4 deletions

View File

@ -25,4 +25,16 @@ export class AuthApi {
window.location.href = "/";
}
/**
* Sign out
*/
static async SignOut(): Promise<void> {
await APIClient.exec({
uri: "/auth/sign_out",
method: "GET",
});
window.location.href = "/";
}
}