remove email_hashed for identify

This commit is contained in:
Ansh Nanda
2023-10-24 17:32:55 -07:00
parent d115bbac27
commit 965560c21d
2 changed files with 0 additions and 4 deletions
-2
View File
@@ -52,9 +52,7 @@ export function init(store: RootStoreModel) {
const sess = store.session.currentSession
if (sess && sess.did) {
if (sess.email) {
const email_hashed = sha256(sess.email)
const did_hashed = sha256(sess.did)
segmentClient.identify(email_hashed, {email_hashed})
segmentClient.identify(did_hashed, {did_hashed})
store.log.debug('Ping w/hash')
} else {
-2
View File
@@ -47,9 +47,7 @@ export function init(store: RootStoreModel) {
const sess = store.session.currentSession
if (sess && sess.did) {
if (sess.email) {
const email_hashed = sha256(sess.email)
const did_hashed = sha256(sess.did)
segmentClient.identify(email_hashed, {email_hashed})
segmentClient.identify(did_hashed, {did_hashed})
store.log.debug('Ping w/hash')
} else {