EasyRefreshToken 5.0.10
See the version list below for details.
dotnet add package EasyRefreshToken --version 5.0.10
NuGet\Install-Package EasyRefreshToken -Version 5.0.10
<PackageReference Include="EasyRefreshToken" Version="5.0.10" />
<PackageVersion Include="EasyRefreshToken" Version="5.0.10" />
<PackageReference Include="EasyRefreshToken" />
paket add EasyRefreshToken --version 5.0.10
#r "nuget: EasyRefreshToken, 5.0.10"
#:package EasyRefreshToken@5.0.10
#addin nuget:?package=EasyRefreshToken&version=5.0.10
#tool nuget:?package=EasyRefreshToken&version=5.0.10
EasyRefreshToken 6.0.10
What's new??
- Some general improvements.
Documentation
Create your own class "MyRefreshToken" and add to it the properties you want and make it inherit from
RefreshToken<TUser, TKey>If you do not want to add new features, you can skip the previous step.
In AppDbContext Class:
public DbSet<RefreshToken<TUser, TKey>> RefreshTokens { get; set; }orpublic DbSet<MyRefreshToken> RefreshTokens { get; set; }In Program Class:
builder.Services.AddRefreshToken<AppDbContext, RefreshToken<TUser, TKey>, TUser, TKey>();orbuilder.Services.AddRefreshToken<AppDbContext, MyRefreshToken, TUser, TKey>();Don't forget:
Add-MigrationUpdate-DatabaseNow you can use ITokenService<TKey> that contains:
OnLoginOnLogoutOnAccessTokenExpiredOnChangePasswordClearClearExpired
And you can control with many options:
MaxNumberOfActiveDevicesTokenExpiredDaysPreventingLoginWhenAccessToMaxNumberOfActiveDevicesTokenGenerationMethodOnChangePasswordBehaviorSaveChanges
For
MaxNumberOfActiveDevicesuseMaxNumberOfActiveDevices.Config().Note: when change on options, I highly recommend cleaning the table by
ClearEnjoy ...
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net5.0
- Microsoft.AspNetCore.Identity (>= 2.2.0)
- Microsoft.EntityFrameworkCore (>= 5.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 5.0.0)
- Microsoft.Extensions.Identity.Stores (>= 5.0.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on EasyRefreshToken:
| Package | Downloads |
|---|---|
|
EasyRefreshToken.EFCore
Package for manage refresh token |
|
|
EasyRefreshToken.InMemory
Package for manage refresh token |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.2.2 | 292 | 11/13/2025 |
| 8.2.2 | 380 | 1/5/2024 |
| 7.2.2 | 254 | 1/5/2024 |
| 7.2.1 | 329 | 6/27/2023 |
| 7.2.0 | 344 | 6/9/2023 |
| 7.1.2 | 302 | 5/21/2023 |
| 7.1.1 | 317 | 5/5/2023 |
| 7.1.0 | 376 | 2/24/2023 |
| 7.0.10 | 483 | 11/26/2022 |
| 6.2.2 | 298 | 1/5/2024 |
| 6.2.1 | 339 | 6/27/2023 |
| 6.2.0 | 254 | 6/9/2023 |
| 6.1.2 | 264 | 5/21/2023 |
| 6.1.1 | 298 | 5/5/2023 |
| 6.1.0 | 390 | 2/24/2023 |
| 6.0.10 | 481 | 11/4/2022 |
| 6.0.9 | 531 | 8/31/2022 |
| 6.0.8 | 588 | 7/8/2022 |
| 6.0.7 | 590 | 7/3/2022 |
| 6.0.6 | 574 | 6/20/2022 |
| 6.0.5 | 558 | 6/20/2022 |
| 5.2.2 | 294 | 1/5/2024 |
| 5.2.1 | 338 | 6/27/2023 |
| 5.2.0 | 254 | 6/9/2023 |
| 5.1.2 | 266 | 5/21/2023 |
| 5.1.1 | 271 | 5/5/2023 |
| 5.1.0 | 373 | 2/24/2023 |
| 5.0.10 | 502 | 11/5/2022 |
| 5.0.9 | 597 | 8/31/2022 |
| 5.0.8 | 653 | 7/8/2022 |
| 5.0.7 | 571 | 7/3/2022 |
| 5.0.6 | 556 | 6/20/2022 |
| 5.0.5 | 630 | 6/20/2022 |