Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

feat: count only successful email+pw sign in clicks

Stojan Dimitrovski4e21a1d36e44
diff --git a/studio/components/interfaces/SignIn/SignInForm.tsx b/studio/components/interfaces/SignIn/SignInForm.tsx
index cd8be134729..934b401e21e 100644
--- a/studio/components/interfaces/SignIn/SignInForm.tsx
+++ b/studio/components/interfaces/SignIn/SignInForm.tsx
@@ -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',