Well done! You have made it this far. After all, it is not difficult to work on web authentication. In this chapter, you have learned what session-based authentication and token-based authentication are, particularly about the JSON Web Token (JWT). You should now know the differences between them and the constituents of a JWT, and how to generate a JWT with the jsonwebtoken Node.js module. We have also covered the MySQL Node.js module and used it as part of our authentication system. You have also integrated Google OAuth for signing the user in and then creating the frontend authentication using Nuxt.
In the next chapter, you will learn how to write end-to-end tests in your Nuxt apps. You will learn about the tools you can install and use for writing your end-to-end tests, notably AVA and Nightwatch. Besides this, you will also learn how to use a Node.js module, which is jsdom, to make your end-to-end testing possible on the server side. This is because Nuxt technically is a server...