Setting up authentication can be quite daunting for beginners and expert developers who set up backend APIs. There is no standardized method and each backend stack have different methods of approaching authentication. Below I will explain a simple and easy way for the flow of logic required to set up authentication which can be applied for several backend technologies. In this guide I will be using Json Web Tokens that are stored in cookies that can be sent to the front end as well as parsed on the backend.