Store roles in auth JWE extras ?

Options

Hello,

I am storing an array of roles because an User can have multiple roles vs single role

However in a Precondition I don't have array operators such as in, contains



Any idea ?

Thanks :)

Tagged:

Answers

  • Ray Deck
    Ray Deck Trusted Xano Expert ✭✭✭
    Options

    For this, you would either:

    1. Use the data manipulation → array → check existence function to see if the array contains the value in question or
    2. Use the "some" filter to execute this test with a bit of javascript.

      Either way you end up with a value where you can just evaluate whether it "==" true!