EasyRefreshToken 5.0.5
See the version list below for details.
dotnet add package EasyRefreshToken --version 5.0.5
NuGet\Install-Package EasyRefreshToken -Version 5.0.5
<PackageReference Include="EasyRefreshToken" Version="5.0.5" />
<PackageVersion Include="EasyRefreshToken" Version="5.0.5" />
<PackageReference Include="EasyRefreshToken" />
paket add EasyRefreshToken --version 5.0.5
#r "nuget: EasyRefreshToken, 5.0.5"
#:package EasyRefreshToken@5.0.5
#addin nuget:?package=EasyRefreshToken&version=5.0.5
#tool nuget:?package=EasyRefreshToken&version=5.0.5
EasyRefreshToken 6.0.5
What's new??
- Remove IDbSetRefreshToken.
- Customize your refresh token entity.
- Support .Net 5
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<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
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 | 295 | 11/13/2025 |
| 8.2.2 | 381 | 1/5/2024 |
| 7.2.2 | 255 | 1/5/2024 |
| 7.2.1 | 331 | 6/27/2023 |
| 7.2.0 | 345 | 6/9/2023 |
| 7.1.2 | 303 | 5/21/2023 |
| 7.1.1 | 318 | 5/5/2023 |
| 7.1.0 | 377 | 2/24/2023 |
| 7.0.10 | 486 | 11/26/2022 |
| 6.2.2 | 298 | 1/5/2024 |
| 6.2.1 | 340 | 6/27/2023 |
| 6.2.0 | 255 | 6/9/2023 |
| 6.1.2 | 265 | 5/21/2023 |
| 6.1.1 | 299 | 5/5/2023 |
| 6.1.0 | 390 | 2/24/2023 |
| 6.0.10 | 483 | 11/4/2022 |
| 6.0.9 | 534 | 8/31/2022 |
| 6.0.8 | 590 | 7/8/2022 |
| 6.0.7 | 593 | 7/3/2022 |
| 6.0.6 | 575 | 6/20/2022 |
| 6.0.5 | 560 | 6/20/2022 |
| 5.2.2 | 295 | 1/5/2024 |
| 5.2.1 | 338 | 6/27/2023 |
| 5.2.0 | 255 | 6/9/2023 |
| 5.1.2 | 267 | 5/21/2023 |
| 5.1.1 | 272 | 5/5/2023 |
| 5.1.0 | 374 | 2/24/2023 |
| 5.0.10 | 504 | 11/5/2022 |
| 5.0.9 | 599 | 8/31/2022 |
| 5.0.8 | 656 | 7/8/2022 |
| 5.0.7 | 573 | 7/3/2022 |
| 5.0.6 | 557 | 6/20/2022 |
| 5.0.5 | 632 | 6/20/2022 |