title: How to return bearer token from HttpresponseMessage Asp.net Web Api
body: <p>How can I return token from web api so that I can set cookie of that token in javascript?
  In this way I am generating token </p>
  
  <pre><code>   [Route("api/agency/login")]
      [HttpPost]
      public HttpResponseMessage loginApi([FromBody] Users UserObj)
      {
             var tokanObj = method.AccessToken(UserObj.username, UserObj.Password, "password");
  
     //How to return this token ??
      }
  </code></pre>