public async Task <IActionResult> Test([UserToken] string auth, string userID) { var authorizedId = await tokenHelper.GetAuthorizedUserID(auth); if (userID == authorizedId || string.IsNullOrWhiteSpace(userID)) { return(Ok("Authorized!")); } return(BadRequest("Not the same user!")); }