diff --git a/SchengenVisaApi/ApplicationLayer/Services/AuthServices/NeededServices/ITokenGenerator.cs b/SchengenVisaApi/ApplicationLayer/Services/AuthServices/NeededServices/ITokenGenerator.cs
index 5601a04..a7e6e9f 100644
--- a/SchengenVisaApi/ApplicationLayer/Services/AuthServices/NeededServices/ITokenGenerator.cs
+++ b/SchengenVisaApi/ApplicationLayer/Services/AuthServices/NeededServices/ITokenGenerator.cs
@@ -2,7 +2,9 @@
namespace ApplicationLayer.Services.AuthServices.NeededServices;
+/// Generates jwt-tokens
public interface ITokenGenerator
{
+ /// returns jwt-token for specific user
string CreateToken(User user);
-}
\ No newline at end of file
+}
diff --git a/SchengenVisaApi/Infrastructure/Auth/TokenGenerator.cs b/SchengenVisaApi/Infrastructure/Auth/TokenGenerator.cs
index e6d2e1d..e96d625 100644
--- a/SchengenVisaApi/Infrastructure/Auth/TokenGenerator.cs
+++ b/SchengenVisaApi/Infrastructure/Auth/TokenGenerator.cs
@@ -6,9 +6,14 @@ using Domains.Users;
namespace Infrastructure.Auth;
+///
+/// options kind of one in authorization registration in DI methods
+/// token handler
+/// date time provider
public class TokenGenerator(TokenGeneratorOptions options, JwtSecurityTokenHandler tokenHandler, IDateTimeProvider dateTimeProvider)
: ITokenGenerator
{
+ ///
public string CreateToken(User user)
{
var claims = new List
@@ -26,4 +31,4 @@ public class TokenGenerator(TokenGeneratorOptions options, JwtSecurityTokenHandl
return tokenHandler.WriteToken(token);
}
-}
\ No newline at end of file
+}