`skipThrowForStatus` overrides oauth2 `autoRefresh`
sillypirate opened this issue · 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
This issue has been copied into our private issue tracker (as PDE-2624). Thanks for the report! We'll update this as we learn more.
Thanks @sillypirate! definitely seems like a bug; I'll take a look.