1//2// App.jsx3//4<WarrantProvider clientKey="<your_client_key>">5 {/* Routes, ThemeProviders, etc. */}6</WarrantProvider>;7
8//9// MyComponent.jsx10//11<ProtectedComponent12 warrants={[{13 objectType: "myObject",14 objectId: object.id,15 relation: "viewer",16 }]}17>18 <MyComponent/>19</ProtectedComponent>20
With tools built for developers, IT administrators, and even sales & customer support, Warrant is a complete platform for authorization across internal and customer-facing use cases.
1{2 "type": "team",3 "relations": {4 "admin": {},5 "manager": {6 "inheritIf": "admin"7 },8 "member": {9 "inheritIf": "manager"10 }11 }12}