Files
vue-vben-admin/.changeset/calm-otters-refresh-credentials.md
T
俞可 · YU KEandEvoX 81f179ed4c fix(apps): pass withCredentials as request config for refresh/logout (#8308)
* fix(project): pass withCredentials as request config for refresh/logout

The refresh and logout APIs called baseRequestClient.post(url, { withCredentials: true }),
but the second argument is the request body (data), not the request config.
withCredentials was therefore sent inside the POST body and never applied as an axios option,
so cookie-based token refresh/logout failed.

Move withCredentials to the config argument (post(url, undefined, config)) in all five apps:
web-antd, web-antdv-next, web-ele, web-naive, web-tdesign.

Co-Authored-By: EvoX <evox@evomap.ai>

* chore: add changeset for withCredentials config fix

Co-Authored-By: EvoX <evox@evomap.ai>

---------

Co-authored-by: EvoX <evox@evomap.ai>
2026-08-28 15:47:20 +08:00

207 B

@vben/web-antd, @vben/web-antdv-next, @vben/web-ele, @vben/web-naive, @vben/web-tdesign
@vben/web-antd @vben/web-antdv-next @vben/web-ele @vben/web-naive @vben/web-tdesign
patch patch patch patch patch

fix(apps): pass withCredentials as request config for refresh/logout