Fix error handling on third_party_auth