Callback when a 401 response is received. Return true to retry the request after refreshing the token.
final Future<bool> Function()? onUnauthorized;