I have an OAuth JWT Bearer token flow set up like this:
- Admin approved users are pre-authorized
- all profiles added to approved list
- Relax IP restrictions
- api, refresh_token/offline_access oauth scopes defined
It works fine for System Administrator, but fails randomly for Customer Community Login license user with: invalid_grant "user hasn't approved this consumer". Then it works, and after 5 minutes fails again.
It doesn't seem like I hit the login limit (from Setup -> Company Information related list: Customer Community Logins: Allowance 10,000 Amount Used :4,661 5/16/2019 7:59 PM)
There are a few similar questions out there but I still could not find the answer.