feat: add logout functionality with dropdown menu for user authentication

This commit is contained in:
2026-04-21 11:28:07 +08:00
parent d6b8d12b2e
commit a2e3676d05
2 changed files with 34 additions and 4 deletions
+4
View File
@@ -7,3 +7,7 @@ export async function login(loginRequest: LoginRequest): Promise<User> {
})
return data
}
export async function logout() {
await WebClient.get<void>("/auth/logout")
}