Commit Graph

6 Commits (811801b70cda800686fef37dd0382ccb9dd453ab)

Author SHA1 Message Date
chenminjie 0fed947230 refactor: 【web-ant】重构认证模块并移除未使用的组件和功能
- 重构认证存储以分别处理认证和权限信息
- 重构验证码组件
- 移除字典数据相关的API和存储功能
- 更新路由生成逻辑和权限控制
- 添加分页和请求客户端相关类型定义
- 更新依赖包版本(crypto-js, qs)及其类型定义
2024-11-26 06:04:36 +08:00
Vben 0df8c5c02c
refactor: reconstruct language files into multi-file structures (#4683)
* refactor: reconstruct language files into multi-file structures

* chore: typo
2024-10-19 14:28:21 +08:00
Vben ba4662522e
fix: fix request not displaying interface error messages correctly (#4596) 2024-10-09 22:08:55 +08:00
Vben b3e3e05990
perf: axios default error interceptor allows you to customize error handling (#4283) 2024-08-30 22:06:02 +08:00
Li Kui df7757d001
fix: when the 'refreshToken' expires, it does not re-authenticate (#4231) 2024-08-26 09:54:42 +08:00
Li Kui 01d60336a6
feat: refactor and improve the request client and support refreshToken (#4157)
* feat: refreshToken

* chore: store refreshToken

* chore: generate token using jsonwebtoken

* chore: set refreshToken in httpOnly cookie

* perf: authHeader verify

* chore: add add response interceptor

* chore: test refresh

* chore: handle logout

* chore: type

* chore: update pnpm-lock.yaml

* chore: remove test code

* chore: add todo comment

* chore: update pnpm-lock.yaml

* chore: remove default interceptors

* chore: copy codes

* chore: handle refreshToken invalid

* chore: add refreshToken preference

* chore: typo

* chore: refresh token逻辑调整

* refactor: interceptor presets

* chore: copy codes

* fix: ci errors

* chore: add missing await

* feat: 完善refresh-token逻辑及文档

* fix: ci error

* chore: filename

---------

Co-authored-by: vince <vince292007@gmail.com>
2024-08-19 22:59:42 +08:00