This commit is contained in:
2025-05-12 23:57:05 +08:00
parent 10a344f6d6
commit 4fa451be97
57 changed files with 344 additions and 106 deletions

View File

@@ -53,6 +53,12 @@
}
};
public string SecretKey { get; set; } = Guid.NewGuid().ToString();
public int TokenLifetimeMinutes { get; set; } = 60 * 24 * 7;
}

View File

@@ -0,0 +1,11 @@
namespace Yes.Domain.Core.Exceptions
{
public class InvalidTokenException : BaseException
{
public InvalidTokenException() : base($"登录失效,请重新登录!")
{
}
}
}