Commit Graph

14 Commits (3b5c935bb81795c48aa3d7974f824524c7a86ba5)

Author SHA1 Message Date
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
Vben 9120d20143
chore: update deps and docs (#4184)
* chore: update deps

* chore: update docs

* chore: update menu
2024-08-18 08:43:00 +08:00
vben bcd5e49117 chore: update deps 2024-07-20 10:00:41 +08:00
vben 9987451647 feat: use simpler nitro instead of nestjs to implement mock service 2024-07-20 08:31:05 +08:00
vince cb161eab89 fix: fixed svg icon load failure and enabled global injection bem.scss 2024-07-17 22:30:18 +08:00
vben e441d14fa2 refactor(project): @vben/vite-connect is reconfigured to support synchronization 2024-07-13 21:13:42 +08:00
vince f98f504534 chore: change how the package is built 2024-07-12 22:24:32 +08:00
vince 35ca56437c chore: update scripts 2024-07-09 14:38:47 +08:00
vben 37a4f971c8 feat: Improve the front-end and back-end permission mode and useAccess 2024-07-06 13:28:08 +08:00
vince dd71988253 chore: update deps 2024-07-05 23:22:37 +08:00
vben 484a0903e9 chore: update deps 2024-06-30 23:15:23 +08:00
vben 692225cfff chore: remove sqlite 2024-06-30 22:28:35 +08:00
vben 9572d1a1c5 feat: Dynamically get the menu from the back end 2024-06-30 15:03:37 +08:00
vben ca1cad0cd3 feat: add backend-mock app 2024-06-30 14:09:44 +08:00