I am trying to understand the difference between Cookies; Bearer and JWT specifically in a .NET Core context. I have spent a few days reading up on this.
My research is telling me that Cookies and Bearer are alternative authentication mechanisms, which are both represented as JWT.
Is it fair to say that .NET Core web applications should use Cookies and .NET Core Web APIs should use Bearer? The reason I ask is because every single example I have looked at for Bearer (in a .NET Core context) uses Web API and every single example I have looked at for Cookies (in a .NET Core context) uses web applications. I can understand this because my research tells me that cookies are most suited for web apps (which use browsers - best for cookies), however web apis can be consumed by none browser apps (therefore Bearer is more suitable).
Have I understood this correctly?
I have looked at many other questions today similar to this e.g. this one: JWT vs cookies for token-based authentication. However, none have answered my specific question - Would Cookies ever be used for Web APIs and would Bearer tokens ever be used for web applications?