How to write @auth incase of user role claim in JWT has a array format

Hi @forstmeier,
We did add the reverse support. You can check the example test case.

In short, both claims in JWT Token or auth rules can be array. Important thing to note is the equality check. Equal checks behave on the same line as graphql filters. So for example, say claims are of value [A, B, C] and Auth Rule says [filter: in][C, D, E]. Then C being the match, it will return true. Do let us know if you face any issues :slight_smile:

2 Likes