customRefreshTokenResponseParser property

FutureOr<Map<String, String>> Function(String body)? customRefreshTokenResponseParser
finalinherited

Defines a custom function to parse the response of your refresh token API, you must return an object with "refreshToken" and "authToken", so it can replace your current session one Example { "auth-token": "YourParsedAuthToken", "auth-refresh-token": "YourParsedRefreshToken" }

Implementation

final FutureOr<Map<String, String>> Function(String body)? customRefreshTokenResponseParser;