Skip to content

Commit

Permalink
♻️ Do not explicity import crypto in the lib file
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernardstanislas committed Mar 23, 2023
1 parent 66dee8f commit f41458d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/crypto.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import crypto from 'crypto';

const subtle = crypto.subtle;
const { subtle } = globalThis.crypto || crypto.webcrypto;

const encryption = {
name: 'RSA-OAEP'
};
Expand Down

1 comment on commit f41458d

@vercel
Copy link

@vercel vercel bot commented on f41458d Mar 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.