mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 11:44:56 +00:00
ff873ae179
Added refresh token endpoint and controller, introduced IUserSessionRefresher and UserSessionRefresher for token renewal, and updated session handling to return both access and refresh tokens. Refactored AuthController, tests, and related interfaces to support new token flow. Fixed JwtAccessOption property typo, updated configuration, and extended UserSessionsRepository to support lookup by refresh token.
14 lines
483 B
C#
14 lines
483 B
C#
using Govor.Application.Services.Authentication;
|
|
|
|
namespace Govor.API.Extensions;
|
|
|
|
public static class AddOptionExtensions
|
|
{
|
|
public static IServiceCollection AddOptionsConfiguration(this IServiceCollection services, IConfiguration configuration)
|
|
{
|
|
services.Configure<JwtAccessOption>(configuration.GetSection(nameof(JwtAccessOption)));
|
|
services.Configure<JwtRefreshOption>(configuration.GetSection(nameof(JwtRefreshOption)));
|
|
|
|
return services;
|
|
}
|
|
} |