What can be the reason for the error: OAuth issue: OAuth_Approval_Error_Generic?
While using iOS Mobile SDK, I had an app that was working smoothly. But when I changed the Consumer key and updated the success URL. After that, I received this error: OAuth_approval_error_generic while signing in. I have updated and saved the connected app, deleted the same, cleaned, and rebuilt it. But I need to get positive results. Can I get any ideas?
You can have this error because of misconfiguration of the connected app. Check the Scopes. You can omit the API and web refresh_token scopes for trailhead apps. So, check the scopes depending on your requirements. It might fix the issue.
You can also use sfdx force:auth device:login instead of authorizing by using web login flow. You can also check if the Salesforce instance: Salesforce CLI is correctly installed.
You can also get this issue if the scope param in the authorization URL request does not match the scope added to the connected app. The below-mentioned code may help you understand if you do not have the full scope of a connected app: