20 thoughts to “Node.js JWT Authentication with PostgreSQL example”

  1. Why endpoint “/api/auth/signup” has roles (admin, moderator) in JSON input? Isn’t it security issue? Otherwise, very excellent tutorial. Thank you

      1. Would it be possible for any of you to elaborate a bit on why this might be a security issue?. Thank you in advance

  2. Thanks for this amazing tutorial on using PostgreSQL .
    It will be helpful if u have a turotial that helps us to connect the tutroial table that you created earlier into the user.controller file in which user and admin have different type of access to the tutorial Apis

  3. Hi bezkoder, There is new users add roles in your auth.controller.js code. But i don’t understand send roles for new user register. How can i add roles to new users that roles select on the vue register UI with options? Thank you.

  4. Unable to connect to server:

    could not connect to server: Connection refused (0x0000274D/10061)
    Is the server running on host “localhost” (::1) and accepting
    TCP/IP connections on port 5432?
    could not connect to server: Connection refused (0x0000274D/10061)
    Is the server running on host “localhost” (127.0.0.1) and accepting
    TCP/IP connections on port 5432?

    Hey its me again, this is the error I keep getting when I’m trying to set up a server on pg admin and nothing online seem to help

  5. Hey, how do I connect the database to Postgresql pg-admin or from my command line like I am at the step where you said to run everything and check the tables but I do not know what to do,

Comments are closed to reduce spam. If you have any question, please send me an email.