Skip to content

Commit 61323f5

Browse files
Fix algorithm param for RN digest call.
1 parent 0c76ac7 commit 61323f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sha256digest-reactnative.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = {
1717
async sha256digest({string}) {
1818
const bytes = new TextEncoder().encode(string);
1919
return new Uint8Array(
20-
await crypto.subtle.digest('SHA-256', bytes)
20+
await crypto.subtle.digest({name: 'SHA-256'}, bytes)
2121
);
2222
}
2323
};

0 commit comments

Comments
 (0)