zapier-platform
zapier-platform copied to clipboard
`skipThrowForStatus` overrides oauth2 `autoRefresh`
Bug Description
Whenever you have skipThrowForStatus: true
, it supersedes the autoRefresh: true
option in oauth2 setup, forcing developers to include a z.errors.RefreshAuthError()
in their afterResponse middleware that autoRefresh: true
should be handling.
Reproduction Steps
Set both skipThrowForStatus
and autoRefresh
to true. The autoRefresh will be ignored.
Version Info
- Version info: 10.0.0+
- Operating System:
- App id: 68700