Updated finish_auth.php with attribute_exchange