Skip to content

Commit

Permalink
fix(CLI): disabling JWT audience verification now possible (#848)
Browse files Browse the repository at this point in the history
`postgraphile -A ''` should disable audience verification, but it didn't. Thanks for spotting the error, Daniel V 👍
  • Loading branch information
benjie authored Aug 30, 2018
1 parent 0406743 commit eb2b529
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/dev
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export BROWSER=none
# Run Nodemon and watch the PostGraphile source code for changes.
if [ "$1" = "--" ]; then
shift
$npm_bin/ts-node --disableWarnings src/postgraphile/cli.ts $* &
$npm_bin/ts-node --disableWarnings src/postgraphile/cli.ts "$@" &
else
$npm_bin/nodemon \
--watch src \
Expand Down
2 changes: 1 addition & 1 deletion src/postgraphile/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ program
.option(
'-A, --jwt-verify-audience <string>',
"a comma separated list of JWT audiences that will be accepted; defaults to 'postgraphile'. To disable audience verification, set to ''.",
(option: string) => option.split(','),
(option: string) => option.split(',').filter(_ => _),
)
.option(
'--jwt-verify-clock-tolerance <number>',
Expand Down

0 comments on commit eb2b529

Please sign in to comment.