diff --git a/app/components/ChefSignInPage.tsx b/app/components/ChefSignInPage.tsx
index fec9ade06..f13aa76e1 100644
--- a/app/components/ChefSignInPage.tsx
+++ b/app/components/ChefSignInPage.tsx
@@ -137,6 +137,13 @@ function OptInsScreen() {
[convex],
);
+ const isLoginSuccessful = optIns.kind === 'loaded' && optIns.optIns.length === 0;
+ useEffect(() => {
+ if (isLoginSuccessful) {
+ window.close();
+ }
+ }, [isLoginSuccessful]);
+
if (optIns.kind === 'loading') {
return