更新注销接口为 revoke
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user