Closed rug1 closed 8 years ago
at the moment the plugin only makes the postgres client available after authorization... https://github.com/dwyl/hapi-postgres-connection/blob/218aa68f7a75ab8a7dad73125663da00a309d3bb/index.js#L12
when we change 'onPreHandler' to 'onPreAuth' the postgres become available in the JWT validateFunction. can we submit a patch?
'onPreHandler'
'onPreAuth'
validateFunction
Makes sense. please PR. :+1:
at the moment the plugin only makes the postgres client available after authorization... https://github.com/dwyl/hapi-postgres-connection/blob/218aa68f7a75ab8a7dad73125663da00a309d3bb/index.js#L12
when we change
'onPreHandler'
to'onPreAuth'
the postgres become available in the JWTvalidateFunction
. can we submit a patch?