onUnauthorized property

Future<bool> Function()? onUnauthorized
final

Callback when a 401 response is received. Return true to retry the request after refreshing the token.

Implementation

final Future<bool> Function()? onUnauthorized;