I'm building an application which will be hosted on a server. I want to build an API for the application to facilitate interaction with from any platform (Web App, Mobile App). What I'm not understanding is that when using the REST API, how do we authenticate the user.
For example, when a user has logged in and then wants to create a forum topic. How will I know that the user is already logged in?