Skip to content

Commit

Permalink
fix(auth): throw error if value is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
golobitch committed May 12, 2024
1 parent 050db86 commit 20f1030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/auth/src/config/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function envString(name: string, value?: string): string {
const envValue = process.env[name]
if (envValue) return envValue

if (typeof(value) === 'undefined') {
if (typeof value === 'undefined') {
throw new Error(`Missing required key value (${name})`)
}

Expand Down

0 comments on commit 20f1030

Please sign in to comment.