更新注销接口为 revoke

This commit is contained in:
2025-04-24 10:46:48 +08:00
parent 9473413def
commit 28c17a2be6
2 changed files with 2 additions and 3 deletions

View File

@@ -66,7 +66,7 @@ export async function logout() {
const access_token = cookieStore.get('auth_token')?.value
const refresh_token = cookieStore.get('auth_refresh')?.value
if (access_token && refresh_token) {
await callByDevice('/api/auth/logout', {
await callByDevice('/api/auth/revoke', {
access_token,
refresh_token,
})