Merge pull request #15574 from supabase/hf/correct-sign-in-clicks-tracker

feat: count only successful email+pw sign in clicks
This commit is contained in:
Stojan Dimitrovski authored and GitHub committed 2023-07-05 14:36:41 +02:00
commit cdcd764fc2
1 file changed
+5 -5
@@ -35,11 +35,6 @@ const SignInForm = () => {
token = captchaResponse?.response ?? null
}
const signInClicks = incrementSignInClicks()
if (signInClicks > 1) {
Sentry.captureMessage('Sign in without previous sign out detected')
}
const { error } = await auth.signInWithPassword({
email,
password,
@@ -47,6 +42,11 @@ const SignInForm = () => {
})
if (!error) {
const signInClicks = incrementSignInClicks()
if (signInClicks > 1) {
Sentry.captureMessage('Sign in without previous sign out detected')
}
ui.setNotification({
id: toastId,
category: 'success',