mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
ce630fbe0a
The JwtService now includes sessionId in access tokens, and all usages have been updated to pass sessionId when generating tokens. UserSession now supports public encryption and signing keys. Tests and session management logic have been updated to reflect these changes, ensuring session-specific claims in JWTs and improved session tracking.
11 lines
339 B
C#
11 lines
339 B
C#
using System.Security.Claims;
|
|
using Govor.Core.Models.Users;
|
|
|
|
namespace Govor.Application.Interfaces.Authentication;
|
|
|
|
public interface IJwtService
|
|
{
|
|
Task<string> GenerateAccessTokenAsync(User user, Guid sessionId);
|
|
Task<string> GenerateRefreshTokenAsync(User user);
|
|
ClaimsPrincipal GetPrincipalFromExpiredToken(string token);
|
|
} |