Browse Source

fix: solve the problem of recursive call to logout api (#4265)

pull/4267/head
Li Kui 2 years ago
committed by GitHub
parent
commit
08acaf05f1
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      apps/web-antd/src/api/core/auth.ts
  2. 4
      apps/web-ele/src/api/core/auth.ts
  3. 4
      apps/web-naive/src/api/core/auth.ts
  4. 4
      playground/src/api/core/auth.ts

4
apps/web-antd/src/api/core/auth.ts

@ -42,7 +42,9 @@ export async function refreshTokenApi() {
* 退
*/
export async function logoutApi() {
return requestClient.post('/auth/logout');
return baseRequestClient.post('/auth/logout', {
withCredentials: true,
});
}
/**

4
apps/web-ele/src/api/core/auth.ts

@ -42,7 +42,9 @@ export async function refreshTokenApi() {
* 退
*/
export async function logoutApi() {
return requestClient.post('/auth/logout');
return baseRequestClient.post('/auth/logout', {
withCredentials: true,
});
}
/**

4
apps/web-naive/src/api/core/auth.ts

@ -42,7 +42,9 @@ export async function refreshTokenApi() {
* 退
*/
export async function logoutApi() {
return requestClient.post('/auth/logout');
return baseRequestClient.post('/auth/logout', {
withCredentials: true,
});
}
/**

4
playground/src/api/core/auth.ts

@ -42,7 +42,9 @@ export async function refreshTokenApi() {
* 退
*/
export async function logoutApi() {
return requestClient.post('/auth/logout');
return baseRequestClient.post('/auth/logout', {
withCredentials: true,
});
}
/**

Loading…
Cancel
Save