Creating Role-Based RPC Authentication Middleware in TypeScript - Effect Community