Skip to content

2.0.45

Choose a tag to compare

@engram-design engram-design released this 25 Aug 01:44
· 18 commits to craft-5 since this release

Added

  • Add Tokens::EVENT_TOKEN_REFRESH_FAILED, fired when a refresh token is permanently rejected (e.g. Google invalid_grant).
  • Add OAuthTokenRefreshException so consumers can detect “reconnect required” without parsing provider error bodies.

Fixed

  • On invalid_grant (and similar permanent refresh failures), delete the stored OAuth token and throw instead of retrying API calls with a dead access token. Fixes integrations that appeared “Connected” for ~a week then failed until reconnect (common when a Google OAuth app is still in Testing publishing status).