onTokenRefreshed property

Future<void> Function(Map<String, dynamic> newTokens)? onTokenRefreshed
getter/setter pair

Callback when tokens are refreshed. Receives the new tokens from refresh endpoint response. Use this to save tokens to local storage. The package will automatically retry the original request after this callback.

Implementation

static Future<void> Function(Map<String, dynamic> newTokens)? onTokenRefreshed;