The security model is challenging, as it relies on Postgres users for iam. Your users essentially log directly into your db
You need an identity middle man in front of the Postgres identity to tackle these and validate that the session is still active. Last time I looked at electric it was a big challenge to integrate such a service. This might have improved since then however