unmask all inputs except for passwords for posthog

This commit is contained in:
Abi Raja 2024-04-19 16:06:34 -04:00
parent aed7e3dacf
commit a227704d41

View File

@ -42,7 +42,16 @@ function AppContainer() {
setSubscriberTier("free");
} else {
// Initialize PostHog only for paid users
posthog.init(POSTHOG_KEY, { api_host: POSTHOG_HOST });
// and unmask all inputs except for passwords
posthog.init(POSTHOG_KEY, {
api_host: POSTHOG_HOST,
session_recording: {
maskAllInputs: false,
maskInputOptions: {
password: true,
},
},
});
// Identify the user to PostHog
posthog.identify(user.email, {
email: user.email,