onRefreshFailed property

Future<void> Function()? onRefreshFailed
final

refreshAccessToken 返回 false 时调用(抛错由外层 send 捕获为网络错误,不经过此处)。 调用后,同一次响应在 HttpUtil.send不会再触发 HttpConfig.on401Unauthorized 与全局 HttpConfig.onFailure (当响应仍为「未授权形态」时),避免与插件原有 401 处理重复。

Implementation

final Future<void> Function()? onRefreshFailed;