[Vuejs]-Javascript/vue.js async/await and .then (promise) not waiting until completion of fetch in login function

0👍

can you put the console.log in the .then?. Is printing something?. If you do a console.log when the data is not received will not print anything.

this.getCredentials(this.input.username, cipher)
.then(data => 
    {
        this.checkResponse = data.items
        console.log("data:  ->>>> " ,this.checkResponse);       
    })
.catch(reason => console.log(reason.message))

Leave a comment