onUnauthorized method

Future<void> onUnauthorized()

Called when the API layer receives a 401. Use to trigger token refresh or logout in your app provider.

Implementation

Future<void> onUnauthorized() async {}