feat: added logic for jwt auth login

This commit is contained in:
Sheen Capadngan
2024-12-11 00:05:31 +08:00
parent c8ee06341a
commit 56aab172d3
5 changed files with 242 additions and 3 deletions
@@ -0,0 +1,4 @@
import picomatch from "picomatch";
export const doesFieldValueMatchJwtPolicy = (fieldValue: string, policyValue: string) =>
policyValue === fieldValue || picomatch.isMatch(fieldValue, policyValue);