Skip to content

Commit

Permalink
Make SALT_ENTROPY required
Browse files Browse the repository at this point in the history
  • Loading branch information
matias-gonz committed Feb 12, 2025
1 parent 8c5ef90 commit c93fbe9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/auth-server/server/api/salt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ const GOOGLE_ISSUERS = [
"https://accounts.google.com",
"accounts.google.com",
];
const SALT_ENTROPY = process.env.SALT_ENTROPY || "entropy";
const SALT_ENTROPY = process.env.SALT_ENTROPY;

if (!SALT_ENTROPY) {
throw new Error("SALT_ENTROPY environment variable is required but not set");
}

async function getGooglePublicKey(kid: string) {
const response = await fetch(GOOGLE_JWKS_URL);
Expand Down

0 comments on commit c93fbe9

Please sign in to comment.