Implementing OAuth success check.