github.com/hapijs/joi makes schemas much more readable, easier to test and reduce the likelihood of unintended bugs.
When this module was first written, it had one or two options, meaning it didn't really need a joi schema. This has since grown and it would now be worth adding a joi schema and validate this when registering an auth method.
Note: This doesn't add any performance hit per request, only on auth scheme registration, as the auth schema will only be validated when schema is registered.
This issue for new contributors, myself and @AdriVanHoudt are available to help work through this PR
github.com/hapijs/joi
makes schemas much more readable, easier to test and reduce the likelihood of unintended bugs.When this module was first written, it had one or two options, meaning it didn't really need a joi schema. This has since grown and it would now be worth adding a
joi
schema and validate this when registering an auth method.Note: This doesn't add any performance hit per request, only on auth scheme registration, as the auth schema will only be validated when schema is registered.
This issue for new contributors, myself and @AdriVanHoudt are available to help work through this PR