title: Grails REST security - Add user id to token
body: <p>I want to add user id field to token returned from /api/login</p>
  
  <p>Currently it's:</p>
  
  <pre><code>{
      "username": "user",
      "roles": [
          "ROLE_USER"
      ],
      "token_type": "Bearer",
      "access_token": "eyJhbGciOiJIUzI1NiJ9.2uk2YoHsyd7bqUdtUYN19ef..",
      "expires_in": 3600,
      "refresh_token": "eyJhbGciOiJIUzI1NiJ9.eyJwcmluY2lwYWwiOiJINH.."
  }
  </code></pre>
  
  <p>I need:</p>
  
  <pre><code>{
      "id": "1",
      "username": "user",
      "roles": [
          "ROLE_USER"
      ],
      "token_type": "Bearer",
      "access_token": "eyJhbGciOiJIUzI1NiJ9.2uk2YoHsyd7bqUdtUYN19ef..",
      "expires_in": 3600,
      "refresh_token": "eyJhbGciOiJIUzI1NiJ9.eyJwcmluY2lwYWwiOiJINH.."
  }
  </code></pre>
  
  <p>the target - queries with user id, like POST /api/something 
  Is there any other approaches? 
  Thanks in advance</p>