Dung Truong
05/11/2024, 1:06 PMAndrew Haines (Cerbos)
Dung Truong
05/12/2024, 6:46 AMDung Truong
05/12/2024, 6:47 AMAndrew Haines (Cerbos)
readFile
from fs/promises
to read the bundle and then pass the resulting promise into the Embedded
client constructor.
But in general for a Node.js application we'd recommend running the Cerbos PDP service and communicating with it using the gRPC SDK. There's some explanation of the rationale here.Dung Truong
05/12/2024, 11:16 AMDung Truong
05/12/2024, 11:17 AMDung Truong
05/12/2024, 11:17 AMAndrew Haines (Cerbos)