title: How to change claim values in refresh tokens and bearer authentication
body: <p>I want to change the value of a claim via refresh tokens. My refresh token provider is like this:</p>
  
  <pre><code>public class MyRefreshTokenProvider : AuthenticationTokenProvider
  {
    public override void Create(AuthenticationTokenCreateContext context)
    {
       ...
       var claim = context.Ticket.Identity.FindFirst(ClaimTypes.UserData);
       if (claim != null)
       {
           context.Ticket.Identity.RemoveClaim(claim);
           context.Ticket.Identity.AddClaim(new Claim(ClaimTypes.UserData, "New Value"));
       }
  
       context.SetToken(context.SerializeTicket());
    }
  
    public override void Receive(AuthenticationTokenReceiveContext context)
    {
       context.DeserializeTicket(context.Token);
    }
  }
  </code></pre>
  
  <p>And in the startup class:</p>
  
  <pre><code>app.UseOAuthBearerTokens(new OAuthAuthorizationServerOptions
    {
       ...
       RefreshTokenProvider = new MyRefreshTokenProvider()
    });
  </code></pre>
  
  <p>The refresh token request completes with no error. But when I use the new access token, the claim value is still the old one.</p>
  
  <p>Is my approach right? Or how can I change a claim value in the Bearer authentication?</p>