From 21866d54cbe685c60a6e964916d7a79c087b1e6c Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Thu, 13 Jun 2024 00:42:41 +0300 Subject: [PATCH] fix: add private to get EncryptKey --- Endpoint/Common/Services/Security/JwtTokenService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Endpoint/Common/Services/Security/JwtTokenService.cs b/Endpoint/Common/Services/Security/JwtTokenService.cs index 7c3225f..f5f7429 100644 --- a/Endpoint/Common/Services/Security/JwtTokenService.cs +++ b/Endpoint/Common/Services/Security/JwtTokenService.cs @@ -13,7 +13,7 @@ public class JwtTokenService : IAccessToken public required string Audience { private get; init; } public TimeSpan Lifetime { private get; init; } - public ReadOnlyMemory EncryptionKey { get; init; } + public ReadOnlyMemory EncryptionKey { private get; init; } public ReadOnlyMemory SigningKey { private get; init; } public (string Token, DateTime ExpireIn) GenerateToken(string userId)