Skip to content
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.

[Bug report] After sign out error #17

Open
ekher-d opened this issue Jun 27, 2019 · 1 comment
Open

[Bug report] After sign out error #17

ekher-d opened this issue Jun 27, 2019 · 1 comment

Comments

@ekher-d
Copy link

ekher-d commented Jun 27, 2019

Errr

@Chonne
Copy link

Chonne commented Jun 27, 2019

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);
      }
    },
  },
};

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants