Looking for example of tapir-zio with a common sealed trait for security and other endpoint

I’m looking for an example of tapir-zio with authentication and other endpoints using the same sealed trait.

Most of the examples I’ve found only use PublicEndpoints and the ones with security are using String as an error type.

Do you mean sth like tapir/ServerSecurityLogicAkka.scala at master · softwaremill/tapir · GitHub but based on ZIO?

Yes, that would be great.

Take a look here: tapir/ServerSecurityLogicZio.scala at master · softwaremill/tapir · GitHub

This was exactly what I needed. Thanks!