Reworked the verifier core to allow more flexibility when checking.
This also removes the special cases for nbf, iat, exp and aud.
Basically I replaced the exact matching against a single value with a more flexible callback for each claim that gets passed some context and can return error codes in case they don't verify correctly. This allows for way more flexible checks like doing deep checks of objects or case insensitive checks.
This is not a final proposal, but more like a proof of the idea. I am absolutely open to improvements/changes even if they completely restructure this.
Reworked the verifier core to allow more flexibility when checking. This also removes the special cases for nbf, iat, exp and aud.
Basically I replaced the exact matching against a single value with a more flexible callback for each claim that gets passed some context and can return error codes in case they don't verify correctly. This allows for way more flexible checks like doing deep checks of objects or case insensitive checks.
This is not a final proposal, but more like a proof of the idea. I am absolutely open to improvements/changes even if they completely restructure this.