question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No error thrown if validateFunc is supplied but 'key' is omitted.

See original GitHub issue

if(options.key && typeof options.validateFunc === 'function') {

This check fails but prompts an error related to verifyFunc.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bitcloudcommented, May 15, 2017

as elaborated on #226 perhaps validateFunc could also be optional if the jwtwebtoken checks are sufficient.

also currently it is not documented that if you supply both, a verifyFunc and a validationFunc, the verifyFunc is completely ignored.

1reaction
asilluroncommented, Aug 27, 2016

I was hoping I could get a PR in quickly, but to give you more details it was undefined.

On Friday, August 26, 2016, Nelson notifications@github.com wrote:

@asilluron https://github.com/asilluron can you give us a bit more code? is options.key undefined or null ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dwyl/hapi-auth-jwt2/issues/191#issuecomment-242845386, or mute the thread https://github.com/notifications/unsubscribe-auth/AB2PsZIdRrnvf0uYPVfbNSP20grxpxezks5qj07fgaJpZM4JtWcV .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Validatefunc is ignored when referencing a variable ... - GitHub
Hi, I'm writing a custom terraform provider and use ValidateFunc for validating input. This doesn't seem to work for referenced values?
Read more >
Schema Behaviors | Terraform - HashiCorp Developer
Must be set if Optional is omitted and element is not Computed. Indicates that this element must be provided in the configuration. Omitting...
Read more >
FluentValidation: Check if one of two fields are empty
I don't know if I have outdated library, but this answer threw System.InvalidOperationException with error message: Property name could not be ...
Read more >
API Reference | Ajv JSON schema validator
If schema is invalid, an error will be thrown. ... unnecessary compilation of schemas that are containers for other schemas but not used...
Read more >
Updates - FormValidation
It might cause an issue if the form children have the flex-grow style ... throw exception if the fied doesn't exist or has...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found