Enable the option to provide a custom request interceptor for the authenticated client
raducristianpopa opened this issue · comments
Radu-Cristian Popa commented
Context
Given the lack of full browser compatibility for our algorithm (Ed25519), transitioning to the SubtleCrypto API is not feasible. The Axios instance is using a request interceptor to create HTTP signatures using @interledger/http-signature-utils
. Because this process relies on Node’s crypto module for signing requests, the client cannot be directly utilized in the WM extension.
Todos
- For the authenticated client, allow users to provide a custom request interceptor rather than the private key and key ID. This custom interceptor will then be registered and replace the built-in interceptor for generating signatures.