refreshTokenResponseParser property

FutureOr<Map<String, String>> Function(String body) refreshTokenResponseParser
getter/setter pair

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

late FutureOr<Map<String, String>> Function(String body) refreshTokenResponseParser;