Commit 7ec1564
committed
feat: [noci] add onTokenRefresh callback and automatic 401 retry with token refresh
- Add onTokenRefresh callback option to ClientOptions for custom token refresh handling
- Implement automatic 401 error detection and token refresh retry for all public API methods
- Enhance disconnect() and removeAllListeners() for better WebSocket cleanup
- Add comprehensive test coverage for token refresh scenarios and disconnect functionality
- Add package-lock.json for dependency locking1 parent 03c293a commit 7ec1564
File tree
14 files changed
+8515
-45
lines changed- src
- apis/private
- client
- types
14 files changed
+8515
-45
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
3 | 26 | | |
4 | 27 | | |
5 | 28 | | |
| |||
0 commit comments