title: Oauth2 valid token JWT Spring
body: <p>What is the best way to check if token is valid for JWT token in oauth2. </p>
  
  <p>Should I use this endpoint? </p>
  
  <pre><code>/oauth/check_token
  </code></pre>
  
  <p>I am not sure how to use it, and what it's doing.  </p>
  
  <p>The reason why i need validate token is that, I want to have some filter which will get me logged User, when correct token provided.</p>
  
  <p>Or maybe I just should get userName from JWT Token and then ask database for User? </p>