Summary
In this chapter, you learned a few of the best practices and recommendations for building a secure RESTful API based on the Gin web framework. You also covered how to implement JWT in Golang and how to persist session cookies across API requests.
You have also explored how a third-party solution such as Auth0 can be used as an authentication provider and how it can be integrated with Golang to secure API endpoints. Finally, you learned how to serve an API through the HTTPS protocol.
In the next chapter, we will build a user-friendly UI (also known as a frontend) on top of the RESTful API with the React web framework.