Вам нужно будет реализовать свой собственный IRefreshTokenStore и добавить его в свой контейнер DI, например:
// Add to DI
services.AddSingleton<IRefreshTokenStore , CustomRefreshTokenStore >();
// Create a new class that implements the IRefreshTokenStore
public class CustomRefreshTokenStore : IRefreshTokenStore
{
public Task<RefreshToken> GetRefreshTokenAsync(string refreshTokenHandle)
{
throw new NotImplementedException();
}
public Task RemoveRefreshTokenAsync(string refreshTokenHandle)
{
throw new NotImplementedException();
}
public Task RemoveRefreshTokensAsync(string subjectId, string clientId)
{
throw new NotImplementedException();
}
public Task<string> StoreRefreshTokenAsync(RefreshToken refreshToken)
{
throw new NotImplementedException();
}
public Task UpdateRefreshTokenAsync(string handle, RefreshToken refreshToken)
{
throw new NotImplementedException();
}
}