Skip to content

Conversation

@dodo920306
Copy link
Contributor

Originally there were two identical request interceptors, both adding the JWT token header except for login and register requests.

However, umi-request's interceptors chain supports async functions naturally, and the Promise returned by the first interceptor is properly handled without needing a second interceptor to process it.

Therefore, the second interceptor is redundant and can be safely removed without affecting functionality, simplifying the codebase.

dodo920306 and others added 2 commits July 15, 2025 12:48
Originally there were two identical request interceptors, both adding the JWT
token header except for login and register requests.

However, umi-request's interceptors chain supports
async functions naturally, and the Promise returned by the first interceptor
is properly handled without needing a second interceptor to process it.

Therefore, the second interceptor is redundant and can be safely removed
without affecting functionality, simplifying the codebase.

Signed-off-by: dodo920306 <[email protected]>
@yeasy yeasy merged commit 247f57d into hyperledger-cello:main Jul 16, 2025
3 checks passed
@dodo920306 dodo920306 deleted the fix/redundant-request-interceptor branch July 19, 2025 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants