Skip to content

Commit

Permalink
fix(postgraphql): don't throw on auth header if auth not enabled (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
nbushak authored and benjie committed May 24, 2017
1 parent 2eaec6e commit b2155c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ export default function createPostGraphQLHttpRequestHandler (options) {
if (debugGraphql.enabled)
debugGraphql(printGraphql(queryDocumentAst).replace(/\s+/g, ' ').trim())

const jwtToken = getJwtToken(req)
const jwtToken = options.jwtSecret ? getJwtToken(req) : null

result = await withPostGraphQLContext({
pgPool,
Expand Down

0 comments on commit b2155c9

Please sign in to comment.