Use 1Password to securely authenticate the PostgreSQL CLI
The PostgreSQL shell plugin allows you to use 1Password to securely authenticate psql with your fingerprint, Apple Watch, or system authentication, rather than storing your credentials in plaintext.
Follow the instructions to configure your default credentials and source the plugins.sh file, then you'll be prompted to authenticate psql with biometrics.