We do support parsing custom claims as a string.
Issue: If JWT custom claim field is string, parse as JSON by dpeek · Pull Request #5513 · dgraph-io/dgraph · GitHub
Fix: fix(GraphQL): Custom Claim will be parsed as JSON if it is encoded as a string by arijitAD · Pull Request #5668 · dgraph-io/dgraph · GitHub
Let me know if this works for you.
1 Like