public IActionResult SignIn([FromBody] UserCredentials Credentials) { if (!ValidEmailPassword(Credentials.Email, Credentials.Password)) { return(UnprocessableEntity()); } var Uid = Auth.AuthUser(Credentials.Email, Credentials.Password) as string; if (Uid is null) { return(Unauthorized()); } Response.Cookies.Append("timestamp", CryptoUtil.EncryptString(Const.CryptoDevKey, DateTime.Now.ToString("yyyyMMddHHmmssFFF"))); return(new JsonResult(new { Uid })); }