You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use different method to make requests (axios instead of fetch). Also, I've implemented custom logic to receive tokens, it should be run before each request. But the current implementation of library doesn't let me to integrate my methods into client.
It would be cool if we could write a custom request method and provide to initializeClient.
One possible way is to just export createClientProxy function, so we could just implement some MoodleClient interface without touching Proxy logic.
The text was updated successfully, but these errors were encountered:
Hello.
I use different method to make requests (axios instead of fetch). Also, I've implemented custom logic to receive tokens, it should be run before each request. But the current implementation of library doesn't let me to integrate my methods into client.
It would be cool if we could write a custom request method and provide to initializeClient.
One possible way is to just export
createClientProxy
function, so we could just implement some MoodleClient interface without touching Proxy logic.The text was updated successfully, but these errors were encountered: