MENU

Fun & Interesting

Best Way to Handle Permissions in TypeScript: RBAC & ABAC with Effect

Lucas Barake 5,517 1 month ago
Video Not Working? Fix It Now

Buy me a coffee! https://buymeacoffee.com/lucasbarake Blog: https://lucas-barake.github.io/building-a-composable-policy-system/ Repository: https://github.com/lucas-barake/effect-monorepo 00:00 The Problem 02:21 Defining the Primitives: Typed Permissions 03:35 Using Context 04:23 Defining a Policy 06:11 withPolicy Guard 07:27 Combinators (Composition) 08:32 Example: Using the Combinators 09:16 ABAC (Attribute-Based Access Control) Policies

Comment