Example #1
0
        public IActionResult VerifyToken([FromBody] string token)
        {
            var tokenDecrypted = token;

            if (string.IsNullOrEmpty(tokenDecrypted) || tokenDecrypted == "0")
            {
                return(BadRequest("Token is invalid"));
            }
            var result = _signInService.IsAllowedToken(tokenDecrypted);

            return(Ok(result));
        }