Store roles in auth JWE extras ?
Options
stephane
Member ✭
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 :)
Answers
-
For this, you would either:
- Use the data manipulation → array → check existence function to see if the array contains the value in question or
- 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!
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback