mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 18:52:19 +00:00
Add
This commit is contained in:
committed by
Jennifer Weber
parent
141615b911
commit
581b319b05
@@ -83,6 +83,16 @@ export const useFirebaseAuthStore = defineStore('firebaseAuth', () => {
|
|||||||
currentUser.value = user
|
currentUser.value = user
|
||||||
isInitialized.value = true
|
isInitialized.value = true
|
||||||
|
|
||||||
|
if (user && (window as any).mixpanel) {
|
||||||
|
;(window as any).mixpanel
|
||||||
|
.identify(user.uid)(window as any)
|
||||||
|
.mixpanel.people.set({
|
||||||
|
$email: user.email,
|
||||||
|
$name: user.displayName,
|
||||||
|
$created: user.metadata.creationTime
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// Reset balance when auth state changes
|
// Reset balance when auth state changes
|
||||||
balance.value = null
|
balance.value = null
|
||||||
lastBalanceUpdateTime.value = null
|
lastBalanceUpdateTime.value = null
|
||||||
|
|||||||
Reference in New Issue
Block a user