flickr-sdk
flickr-sdk copied to clipboard
Usage with WebCrypto instead of node's crypto
I'm wanting to make requests to Flickr's api in a Cloudflare Worker, but it provides WebCrypto rather than node's crypto implementation.
This turns out to be causing a real headache especially as the WebCrypto API is asynchronous.
Any pointers gratefully received!
Neat! So there are two main parts to our OAuth stuff: there's the OAuth class, which implements the OAuth signature algorithm, and the OAuth superagent plugin, which uses the OAuth class to sign the request. I would probably start out by making your own copies of both of those files and edit them to be async/use webcrypto, then use your plugin instead. Let us know how it turns out!