onAuthFailure property

Future<void> Function()? onAuthFailure
final

Called once when authorization is refused, before one retry — the hook for refreshing an expired token. Returning normally means "try again".

Implementation

final Future<void> Function()? onAuthFailure;