In the previous tutorial, i showed how to upload form data with file using Multer & MYSQL in Express . This tutorial teaches you how to do authentication in Express using JWT (JSON Web Token) and MYSQL database. Why we need authentication? The requirement is to allow APIs access to only authorized users. A visitor creates a user account using username, email, and password. We are going to use bcrypt package to create an encrypted version of the password and to verify the password againts MYSQL database. Execute the following command to install bcrypt. npm i bcrypt Once the account is created successfully, he/she can login to the system. The login information is verified on Express server. If the log in information is correct, valid token will be created and returned to a client app. The client app that received the token need to pass the token to the server to get permission to access the APIs. The token has to be verified before granting permissions. The information in ...