zapier-platform icon indicating copy to clipboard operation
zapier-platform copied to clipboard

`skipThrowForStatus` overrides oauth2 `autoRefresh`

Open sillypirate opened this issue 3 years ago • 2 comments

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

sillypirate avatar Aug 03 '21 18:08 sillypirate