Hey all, I’m working on an integration and getting “invalid_grant”. Wondering if anyone has encountered this and found steps to resolve it? Thanks
e
eblackey
05/16/2025, 6:40 PM
This can be caused by a lot of things. Can you share more about the integration. Sounds like you're trying to authenticate with OAuth2?
r
Ryan Longenecker
05/16/2025, 6:54 PM
It’s OAuth2. It’s signing in, 2-factor authentication, letting me choose my account, giving access to my integration, then my app is giving me the “invalid_grant” returned. Happy to give more info, just not sure what
e
eblackey
05/16/2025, 8:25 PM
Check your integrations setup - specifically that your Redirect URI matches your app configuration and make sure the scopes selected match as well. I've seen both of these cause invalid_grant errors.
👍 1
eblackey
05/16/2025, 8:27 PM
Might help if I knew what Oauth2 library you're using.
r
Ryan Longenecker
05/16/2025, 10:11 PM
I’ll Check those. I’ll try and find out the library
Ryan Longenecker
05/27/2025, 3:13 AM
Hey @eblackey I’m going to move to using “OAuthSwift, have you used this library before?