vuex icon indicating copy to clipboard operation
vuex copied to clipboard

[Bug report] After sign out error

Open ekher-d opened this issue 6 years ago • 1 comments

Errr

ekher-d avatar Jun 27 '19 14:06 ekher-d

I've encountered this issue as well. In my browser, the message only appears if I've opened the Vue Chrome devtools. Otherwise it does sign out the user, but returns undefined:

import { mapActions } from 'vuex';

export default {
  methods: {
    ...mapActions('cognito', ['signOut']),
    async logOut() {
      try {
        const result = await this.signOut();
        // this logs "undefined"
        console.log(result);
      } catch (err) {
        // no logs are displayed if the Vue devtools haven't been opened
        console.error(err);
      }
    },
  },
};

Chonne avatar Jun 27 '19 17:06 Chonne