in lib/credentials.js [61:73]
refresh(onSuccess, onError) {
const $this = this;
this.cognito.refresh(err => {
if (err) {
$this.onError(err,onError);
} else {
if (typeof onSuccess === 'function') {
$this.onSuccess(onSuccess, onError);
}
}
});
return this;
}