Question: why use jwt over cookies?
Answer: Scalability Because session cookies are stored in the server's memory, it has the potential of using a lot more resources if the website or app sees a lot of traffic. Because JSON web tokens are stateless, they can potentially save on server resources in many cases.