An issue however that we currently have is that approximately a week after our client logs into their account, when a request is made to refresh the token we get:
"error" : "invalid_grant",
"error_description" : "Invalid, expired, or revoked refresh token."
From that point onward the client's tokens cannot be used anymore. What this means for us is that once a client logs in their Bullhorn they get essentially disconnected after a week. What could be the cause of this?
We are located in the UK and refresh our tokens by using:
https://auth-emea.bullhornstaffing.com/ ... ecret=XXXX
It is definitely not best practice to tie a login to a given API token. Those tokens are not permanent, and doing so will result in the scenario you are experiencing.
If possible, the token should be generated after login is validated. With that said, you may receive more practical coding advice from other users on this channel.
Senior Enterprise Support Analyst
B U L L H O R N
Staffing and Recruiting Software, On Target, On Demand
Bullhorn Support Contact Numbers
UK: 44 800 032 2848
Australia: 61 28 073 5089