feat: add generate refresh token

This commit is contained in:
Polianin Nikita 2024-05-29 05:35:44 +03:00
parent b25be758ad
commit a3a42dd5c2

View File

@ -5,4 +5,7 @@ namespace Mirea.Api.Security.Services;
public class AuthService()
{
public TimeSpan Lifetime { private get; init; }
private static string GenerateRefreshToken() => Guid.NewGuid().ToString().Replace("-", "") +
GeneratorKey.GenerateString(32);
}