fix: doesn't set expire time for fingerpring

This commit is contained in:
Polianin Nikita 2024-10-09 02:58:52 +03:00
parent c9ebddf27a
commit b49df925d4

View File

@ -46,13 +46,13 @@ public class AuthController(IOptionsSnapshot<Admin> 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)]