after method

void after(
  1. Response resp
)
override

Implementation

void after(Response resp) {
  final authHeaders =
      AuthHeaders.fromHeaderStr(resp.headers['authorization']);
  if (authHeaders.containsScheme('Bearer')) {
    token = authHeaders.items['Bearer']!.credentials;
  }
}