public IActionResult ValidateToken([FromQuery] string token) { var tokenObject = MongoConnector.DecryptToken(token); if (tokenObject == null) { return(Unauthorized()); } return(Ok()); }