- Published on
Bug Fixed: OAuth Approval Error in Salesforce
- Authors
- Name
- Firat Dikmen

Error Message
OAuth Error
We can’t authorize you because of an OAuth error. For more information, contact your Salesforce administrator.
OAUTH_APPROVAL_ERROR_GENERIC: An unexpected error has occured during authentication. Please try again.
You have developed a React-Native forcereact application. You want to associate it with Connected App in Salesforce. But you get the above error. The solution is very easy.
In “Selected OAuth Scopes” in “Connected Apps” settings, the “Perform requests at any time (refresh_token, offline_access)”option must be selected.

Selected OAuth Scopes
If you have done this and your error persists, there may be an IP restriction. Then you should select the “Relax IP restrictions” option in the “IP Relaxation” settings as follows. You can get to this menu by going to Setup => Manage Connected Apps => Your Connected Name => Edit.

IP Relaxation
Sources: - https://docs.revenuegrid.com/ri/fast/articles/Salesforce-OAuth-Error/ - https://salesforce.stackexchange.com/questions/99900/oauth-issue-oauth-approval-error-generic/101278#101278
Stackademic 🎓
Thank you for reading until the end. Before you go:
- Follow us X | LinkedIn | YouTube | Discord
- Visit our other platforms: In Plain English | CoFeed | Venture | Cubed
- More content at Stackademic.com
