admin-vben5/packages/@core/preferences/src
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
..
config.ts feat: refactor and improve the request client and support refreshToken (#4157) 2024-08-19 22:59:42 +08:00
constants.ts perf: improve login page UI (#4142) 2024-08-13 21:17:10 +08:00
index.ts refactor(project): re-adjust the overall folder 2024-07-23 00:03:59 +08:00
preferences.test.ts perf: optimize for some details and comments (#4030) 2024-08-04 05:42:59 +08:00
preferences.ts perf: supplement login interface documents and add configuration parameters (#4175) 2024-08-17 22:38:37 +08:00
types.ts feat: refactor and improve the request client and support refreshToken (#4157) 2024-08-19 22:59:42 +08:00
update-css-variables.ts perf: enable strict ts type checking (#4045) 2024-08-05 21:12:22 +08:00
use-preferences.ts perf: optimize for some details and comments (#4030) 2024-08-04 05:42:59 +08:00