get()

in lib/credentials.js [44:59]


    get(onSuccess, onError) {
        const $this = this;
        this.cognito.get((err) => {
            if (err) {
                $this.onError(err,onError);
            }
            if ($this.cognito.needsRefresh()) {
                $this.refresh(onSuccess,onError);
            } else {
                if (typeof onSuccess === 'function') {
                    $this.onSuccess(onSuccess, onError);
                }
            }
        });
        return this;
    }