refactor(web): remove admin token refresh flow

This commit is contained in:
mlogclub
2026-04-30 18:06:46 +08:00
parent 34e27dffca
commit d300e0f00e
4 changed files with 8 additions and 61 deletions
+1 -4
View File
@@ -30,13 +30,10 @@ export async function fetchProfile() {
return request<AuthSession>("/api/auth/profile")
}
export async function logout(refreshToken?: string) {
export async function logout() {
try {
await request("/api/auth/logout", {
method: "POST",
body: JSON.stringify({
refreshToken,
}),
})
} finally {
clearSession()