I installed postgres and created a stories db. User fernandob has superuser privileges.
I created github OAuth and placed those inside .env
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+-----------+----------+-------------+-------------+-----------------------
fernandob | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
stories | fernandob | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres
stories=# \conninfo
You are connected to database "stories" as user "fernandob" via socket in "/var/run/postgresql" at port "5432".
[INFO] 19:32:16 ts-node-dev ver. 1.0.0 (using ts-node ver. 9.0.0, typescript ver. 4.0.5)
about to connect to db, host: ignore
(node:1212232) UnhandledPromiseRejectionWarning: error: password authentication failed for user "fernandob"