vuetifyjs / vuex

📚 Mono-repo structure for Vuetify Vuex modules
Other
43 stars 11 forks source link

USER is set to "[object Object]" #5

Closed StefanFabian closed 5 years ago

StefanFabian commented 5 years ago

I've added a sign up form similar to the one in the example and called:

this.$store.dispatch('cognito/registerUser', {
    username: this.username,
    password: this.password,
    attributes: {
      given_name: this.givenName,
      family_name: this.familyName,
      email: this.email.toLowerCase()
    }
})

When reloading, I wasn't logged in. I've checked the local storage and there was an entry with key 'USER' but it was set to the string '[object Object]'. I assume that this is not the intended behavior. I'm using Vue v2.5.17 with Vuex v3.0.1, Vuetify v1.3.0 and @vuetify/vuex-cognito-module v0.4.0.

PS: Thank you for you work on this, it's a great addition and helped me a lot.

StefanFabian commented 5 years ago

After checking the code of this extensions and the result returned by the sign up, I assume that this is not caused by this plugin but rather by the amplify library itself. Hence, I'll close this issue but if anyone knows anything about this I'd appreciate any input. Btw, it might be relevant that I'm on firefox.