EasyRefreshToken 6.0.8
See the version list below for details.
dotnet add package EasyRefreshToken --version 6.0.8
NuGet\Install-Package EasyRefreshToken -Version 6.0.8
<PackageReference Include="EasyRefreshToken" Version="6.0.8" />
<PackageVersion Include="EasyRefreshToken" Version="6.0.8" />
<PackageReference Include="EasyRefreshToken" />
paket add EasyRefreshToken --version 6.0.8
#r "nuget: EasyRefreshToken, 6.0.8"
#:package EasyRefreshToken@6.0.8
#addin nuget:?package=EasyRefreshToken&version=6.0.8
#tool nuget:?package=EasyRefreshToken&version=6.0.8
EasyRefreshToken 6.0.8
What's new??
- Max number of active devices per user type (TPT).
- Max number of active devices per user property (this option uses Reflection, so may be slow!)
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:
MaxNumberOfActiveDevicesTokenExpiredDaysPreventingLoginWhenAccessToMaxNumberOfActiveDevicesTokenGenerationMethodOnChangePasswordBehavior
for
MaxNumberOfActiveDevicesuseCustomMaxNumberOfActiveDevices.Config().Note: when change on options, I highly recommend cleaning the table by
ClearEnjoy ...
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. 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. |
-
net6.0
- Microsoft.AspNetCore.Identity (>= 2.2.0)
- Microsoft.EntityFrameworkCore (>= 6.0.6)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Identity.Stores (>= 6.0.6)
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 | 293 | 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 | 485 | 11/26/2022 |
| 6.2.2 | 298 | 1/5/2024 |
| 6.2.1 | 339 | 6/27/2023 |
| 6.2.0 | 255 | 6/9/2023 |
| 6.1.2 | 265 | 5/21/2023 |
| 6.1.1 | 298 | 5/5/2023 |
| 6.1.0 | 390 | 2/24/2023 |
| 6.0.10 | 483 | 11/4/2022 |
| 6.0.9 | 532 | 8/31/2022 |
| 6.0.8 | 589 | 7/8/2022 |
| 6.0.7 | 592 | 7/3/2022 |
| 6.0.6 | 575 | 6/20/2022 |
| 6.0.5 | 559 | 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 | 503 | 11/5/2022 |
| 5.0.9 | 598 | 8/31/2022 |
| 5.0.8 | 654 | 7/8/2022 |
| 5.0.7 | 572 | 7/3/2022 |
| 5.0.6 | 557 | 6/20/2022 |
| 5.0.5 | 631 | 6/20/2022 |