customRefreshTokenCallback property

FutureOr<Map<String, String>> Function(String token, String? refreshToken)? customRefreshTokenCallback
final

This Callback is called whenever a refresh token is needed, this a way to implement any custom logic if user wants to call a 3rd part SDK in order to gain the new token, etc

Implementation

final FutureOr<Map<String, String>> Function(String token, String? refreshToken)? customRefreshTokenCallback;