SDKs and components in the most popular backend languages and frontend frameworks.
1import "github.com/warrant-dev/warrant-go"2
3client := warrant.NewClient(warrant.ClientConfig{4 ApiKey: "<your_api_key>",5})6
7isAuthorized, err := client.IsAuthorized(warrant.Warrant{8 ObjectType: "store",9 ObjectId: "91",10 Relation: "edit",11 Subject: warrant.Subject{12 ObjectType: "user",13 ObjectId: "Server 56",14 },15})16
17if isAuthorized {18 // Carry out authorized logic19}