Replies: 3 comments 4 replies
-
Without specific code to review, the best approach is to note that this question has been asked frequently online, with various answers depending on the context. I suggest reviewing those first and then returning here if further clarification is needed. |
Beta Was this translation helpful? Give feedback.
-
Searching for 'invalid_grant xero api' should yield you some results. However, I think your problem may be solved by adding
I would also suggest adding (if not already) |
Beta Was this translation helpful? Give feedback.
-
Not 100% on this, but it's also possible that upgrading PHP 7 > 8 would drag different peer dependencies, which possibly have different behaviour. FWIW I made an oath provider a while back that definitely works. It could be a good guide to confirm your usage of the Just guessing here but easy things to check. |
Beta Was this translation helpful? Give feedback.
-
I have a weird scenario where my xero integration works in PHP7 but the same codebase doesn't work in PHP8. On PHP8 it will authenticate against Xero's Oauth2 successfully but requests made to the Xero API always fail with
invalid_grant
. I'm struggling to figure out why exactly. Any clues?Beta Was this translation helpful? Give feedback.
All reactions