[x] All new/changed/fixed functionality is covered by tests (or N/A)
[x] I have added documentation for all new/changed functionality (or N/A)
🔧 Changes
An empty audience should never be allowed to be set when the validator gets instantiated.
What happens currently is that if an audience is set as empty on the validator, the validation of the JWT will still fail but only within the request lifecycle.
We're adding the extra len(audience) validation now on the validator so we can fail earlier on app bootstrap in case we pass a nil or empty audience.
📝 Checklist
🔧 Changes
An empty audience should never be allowed to be set when the validator gets instantiated.
What happens currently is that if an audience is set as empty on the validator, the validation of the JWT will still fail but only within the request lifecycle.
We're adding the extra len(audience) validation now on the validator so we can fail earlier on app bootstrap in case we pass a nil or empty audience.
📚 References
🔬 Testing