mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 01:45:10 +03:00
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:
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',
|
||||
|
||||
Reference in new issue
Block a user