Rever sentry user auth causing issues
This commit is contained in:
parent
4c7711d143
commit
a66c4965a5
|
@ -1,5 +1,4 @@
|
||||||
import {defineStore} from 'pinia'
|
import {defineStore} from 'pinia'
|
||||||
import * as Sentry from "@sentry/vue";
|
|
||||||
|
|
||||||
export const useAuthStore = defineStore('auth', {
|
export const useAuthStore = defineStore('auth', {
|
||||||
state: () => {
|
state: () => {
|
||||||
|
@ -65,12 +64,7 @@ export const useAuthStore = defineStore('auth', {
|
||||||
useAmplitude().setUser(this.user)
|
useAmplitude().setUser(this.user)
|
||||||
useCrisp().setUser(this.user)
|
useCrisp().setUser(this.user)
|
||||||
|
|
||||||
// Init sentry
|
// todo: set sentry user
|
||||||
Sentry.setUser({
|
|
||||||
id: this.user.id,
|
|
||||||
email: this.user.email,
|
|
||||||
subscription: this.user?.is_subscribed
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
|
|
||||||
logout() {
|
logout() {
|
||||||
|
|
Loading…
Reference in New Issue