refreshToken static method
Implementation
static Future<AuthorizationResponse> refreshToken({
required RefreshRequest request,
}) async {
final response = await httpRetry(
() => http.post(
Uri.parse(request.configuration.tokenEndpoint),
body: request.toMap(),
),
);
if (response == null) throw AuthenticationException(ERROR_INVALID_RESPONSE);
return AuthorizationResponse.fromJson(response);
}