title: OpenIddict get token_id before response
body: <pre><code>[AllowAnonymous]
  [HttpPost("~/api/auth/login")]
  [Produces("application/json")]
  public async Task&lt;IActionResult&gt; Login(OpenIdConnectRequest request)
  {
    ...
        var ticket = await CreateTicketAsync(request, user);
        _logger.LogInformation($"User logged in (id: {user.Id})");
  
        // Returning a SignInResult will ask OpenIddict to issue the appropriate access/identity tokens.
  
        return SignIn(ticket.Principal, ticket.Properties, ticket.AuthenticationScheme);
  }
  </code></pre>
  
  <p>OpenIddict creates token after SignIn method is called right? How can i access created refresh_token token_id before response is sent?</p>
  
  <p>I want to associate token_id with custom device_id and save to database. Then i will allow user to revoke refresh_token with specified device.</p>