Skip to content

Commit

Permalink
Fix crypto library
Browse files Browse the repository at this point in the history
  • Loading branch information
crayolakat committed Sep 22, 2023
1 parent 6b57473 commit 5289fdd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/extensions/secret-manager/crypto.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Used to encrypt/decrypt values (like auth tokens) before storing them in the
database, using the SESSION_SECRET environment variable as the encryption key.
*/

const crypto = require("crypto");
const crypto = require("crypto-browserify");

const secret = process.env.SESSION_SECRET || global.SESSION_SECRET;
const algorithm = "aes-256-cbc";
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/secret-manager/default-encrypt/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { symmetricDecrypt, symmetricEncrypt } from "./crypto";
import { symmetricDecrypt, symmetricEncrypt } from "../crypto";

export async function getSecret(name, token, organization) {
try {
Expand Down

0 comments on commit 5289fdd

Please sign in to comment.