twitter-api-typescript-sdk icon indicating copy to clipboard operation
twitter-api-typescript-sdk copied to clipboard

auth: Use webcrypto & Uint8Array instead of NodeJS crypto & Buffer

Open dwardu opened this issue 1 year ago • 3 comments

Problem

The current auth implementation makes use of NodeJS crypto package and Buffer, and because of this the library cannot be used in contexts where these are unavailable, such as on Cloudflare workers.

Solution

The solution was to replace NodeJS primitives with their standard counterparts.

Result

As a result of the changes in this PR, it will be possible to use the library on environments where NodeJS crypto and Buffer are not available, such as Cloudflare workers.

dwardu avatar May 29 '23 16:05 dwardu

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar May 29 '23 16:05 CLAassistant

Hi... I want to recover my account. I think I unintentionally broke the Twitter Rules, but after reading it and reading it again well; I undertake not to violate and comply with all laws and policies of use of the Twitter program. I undertake to abide by the laws and thank you for your cooperation

Note I have worked with you a lot on recalculation. Please I want to understand what are your conditions for reinstatement of these accounts mentioned below

👇👇👇👇

@chinanws22

@WORLD___2022

@chinewar111

Monneraldo avatar May 29 '23 17:05 Monneraldo

I can confirm this works as expected, are there any plans to merge this?

@refarer

clxyder avatar Jul 07 '24 17:07 clxyder