Am I able to use it from vuex actions?

BobNobrain
0
BobNobrain
commented 3 months ago

I try to use it from vuex actions like this:

// this is inside vuex 'login' action
this.$sentry.configureScope(scope => {
      scope.setUser({ username, id });
});

But this.$sentry is undefined. Am I doing something wrong?

Or maybe I should provide user information to the plugin not when user logs in, but somewhere else?

0
Informations
Question โ€ข Unresolved
#c38 - Created 3 months ago