Hi,
Yesterday we had an issue with BBMS transactions in our Spark website. About 10 transactions failed due to the refresh token expired. After I signed into BB and authorized the project to get a new refresh token (see Sky API Authorize screenshot), the issue was fixed.
We did have almost 2 months without a credit card donation. But according to the documentation (
https://developer.blackbaud.com/skyapi/docs/authorization#token-expiration), refresh tokens will expire after 365 days. I wonder why our refresh token expired? The second screenshot shows the piece of code that caught the 401 error: Token Expired.
The initial access token and refresh token are saved in database.
Each time we exchange our refresh token for a new access token, the old refresh token in the table is updated by the new refresh token. So it should never expire!Thanks,
-Tiehu