From b49df925d4f7a3463c148f51bc04bd5665a4925f Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Wed, 9 Oct 2024 02:58:52 +0300 Subject: [PATCH] fix: doesn't set expire time for fingerpring --- Endpoint/Controllers/V1/AuthController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Endpoint/Controllers/V1/AuthController.cs b/Endpoint/Controllers/V1/AuthController.cs index a7392a2..6081656 100644 --- a/Endpoint/Controllers/V1/AuthController.cs +++ b/Endpoint/Controllers/V1/AuthController.cs @@ -46,13 +46,13 @@ public class AuthController(IOptionsSnapshot user, AuthService auth, Pass private void SetRefreshToken(string value, DateTimeOffset? expires = null) { SetCookie("refresh_token", value, expires); - SetCookie("user_key", Fingerprint, expires); + SetCookie("user_key", Fingerprint); } private void SetFirstToken(string value, DateTimeOffset? expires = null) { SetCookie("authentication_token", value, expires); - SetCookie("user_key", Fingerprint, expires); + SetCookie("user_key", Fingerprint); } [ApiExplorerSettings(IgnoreApi = true)]