feat:刷新令牌的完整实现

This commit is contained in:
YunaiV
2025-03-27 11:36:30 +08:00
parent 5659dab41e
commit b79a239b4c
3 changed files with 17 additions and 5 deletions

View File

@@ -48,10 +48,11 @@ export async function refreshTokenApi(refreshToken: string) {
}
/** 退出登录 */
// TODO @芋艿:有问题 baseRequestClient
export async function logoutApi() {
return baseRequestClient.post('/system/auth/logout', {
withCredentials: true,
export async function logoutApi(accessToken: string) {
return baseRequestClient.post('/system/auth/logout', {}, {
headers: {
Authorization: `Bearer ${accessToken}`,
}
});
}