Use Cases
Role-Based Access
1min
You can use JAW
When you want to display specific information or features only to authorized end-user environments, such as an enterprise app for an airline where premier features are available only for first-class passengers, design your data model with a boolean type.
Using a boolean type to represent conditions, such as firstClassOnly, is the most straightforward way to control visibility based on specific conditions.
The following snippet demonstrates a basic implementation of role-based access, in which a note displays to the end user only when firstClassOnly is true:
Swift
Kotlin
JS
Java
C#
C++
Rust
|
Updated 27 Sep 2023
Did this page help you?