I am developing one SPA application using Web API and Angular and using Bearer Token based authentication for authentication and authorization.
My question : Basically we will get the token from web api and store that token in local / session storage and for subsequent requests we are using this token and pass to every request through HTTP Header. That means server does not know anything about the particular token/session and who will send that request. Here my question is how server identifies from which user that token coming and how it will check whether it is valid token or not.