Update js-sdk usages around Buffers to avoid needing Buffer polyfill
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -118,7 +118,7 @@ export async function buildAndEncodePickleKey(
|
||||
data.encrypted,
|
||||
);
|
||||
if (pickleKeyBuf) {
|
||||
return encodeUnpaddedBase64(pickleKeyBuf);
|
||||
return encodeUnpaddedBase64(new Uint8Array(pickleKeyBuf));
|
||||
}
|
||||
} catch {
|
||||
logger.error("Error decrypting pickle key");
|
||||
|
||||
Reference in New Issue
Block a user