Skip to content

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

fix: update password should logout other sessions

Kang Mingbd147db95bd3
diff --git a/studio/components/interfaces/SignIn/ResetPasswordForm.tsx b/studio/components/interfaces/SignIn/ResetPasswordForm.tsx
index 4acce9d8d05..37f88ab4a82 100644
--- a/studio/components/interfaces/SignIn/ResetPasswordForm.tsx
+++ b/studio/components/interfaces/SignIn/ResetPasswordForm.tsx
@@ -23,6 +23,9 @@ const ResetPasswordForm = () => {
message: `Password saved successfully!`,
})
+ // logout all other sessions after changing password
+ await auth.signOut({ scope: 'others' })
+
await router.push('/projects')
} else {
ui.setNotification({