after method

StringResponse after (
  1. StringResponse resp
)
override

Implementation

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