修改授权撤销接口调用方式,改为使用用户令牌调用
This commit is contained in:
@@ -54,7 +54,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/revoke', {
|
||||
await callByUser('/api/auth/revoke', {
|
||||
access_token,
|
||||
refresh_token,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user