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