Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage with WebCrypto instead of node's crypto #150

Open
johtso opened this issue Apr 20, 2022 · 1 comment
Open

Usage with WebCrypto instead of node's crypto #150

johtso opened this issue Apr 20, 2022 · 1 comment

Comments

@johtso
Copy link

johtso commented Apr 20, 2022

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!

@jeremyruppel
Copy link
Member

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!

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

No branches or pull requests

2 participants