dwyl / hapi-auth-jwt2

:lock: Secure Hapi.js authentication plugin using JSON Web Tokens (JWT) in Headers, URL or Cookies
ISC License
798 stars 126 forks source link

Add request parameter to key method #312

Closed jrpedrianes closed 3 years ago

jrpedrianes commented 5 years ago

Would be interesting to add to the key method the current request, so there can be used if is necessary.

for example adding here the request and the using in the key method

const { keys, extraInfo } = await internals.getKeys(decoded, options, request);

nelsonic commented 3 years ago

@jrpedrianes thanks for opening this issue. request is now included. see: https://github.com/dwyl/hapi-auth-jwt2#documentation