Add Application configuration #11
.envBackend.sln
ApiDto
Common
Requests/Configuration
Endpoint
Common
Attributes
Exceptions
Interfaces
Services
Configuration
EnvironmentManager.cs
General
Swagger
Controllers
Endpoint.csprojMiddleware
Program.csProperties
Persistence
Security
@ -5,4 +5,7 @@ namespace Mirea.Api.Security.Services;
|
|||||||
public class AuthService()
|
public class AuthService()
|
||||||
{
|
{
|
||||||
public TimeSpan Lifetime { private get; init; }
|
public TimeSpan Lifetime { private get; init; }
|
||||||
|
|
||||||
|
private static string GenerateRefreshToken() => Guid.NewGuid().ToString().Replace("-", "") +
|
||||||
|
GeneratorKey.GenerateString(32);
|
||||||
}
|
}
|
Reference in New Issue
Block a user