I've seen that it's very common to use token-based authentication for RestFul APIs, the question is, can it be implemented for a Web application?
I've seen that it's very common to use token-based authentication for RestFul APIs, the question is, can it be implemented for a Web application?
Yes. In fact, the W in JWT is by Web . See the documentation: link
Of course What has a web application that does not have a REST client? The browser, you could say. But frameworks and technologies such as React or Vue are REST clients that make calls to services based on REST, ... The JWT model is server-less and is being imposed for its advantages in scalability, also in web applications.
JWT is becoming a standar for almost any authentication method, I recommend it, and this article can help you. Introduction to JWT - Platzi