Logo
Explore Help
Register Sign In
xkyy/xk-admin
1
0
Fork 0
You've already forked xk-admin
Code Issues Pull Requests Actions 3 Packages Projects Releases Wiki Activity
Files
a4736a49f81a3c4473d41c9288dc02dfbceadfce
xk-admin/packages/effects/request/src/request-client/index.ts

4 lines
103 B
TypeScript
Raw Normal View History

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
export * from './preset-interceptors';
feat: refactor request
2024-06-02 20:50:51 +08:00
export * from './request-client';
export type * from './types';
Reference in New Issue Copy Permalink
Powered by Gitea Version: 25.5.0 Page: 128ms Template: 2ms
English
English 简体中文 繁體中文(台灣) 繁體中文(香港)
Licenses API