diff --git a/web/pages/auth/callback.html b/web/pages/auth/callback.html
deleted file mode 100644
index b952623c..00000000
--- a/web/pages/auth/callback.html
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
- Redirecting...
-
-
-
-Redirecting to app...
-
-
diff --git a/web/pages/auth/callback.tsx b/web/pages/auth/callback.tsx
new file mode 100644
index 00000000..66127f86
--- /dev/null
+++ b/web/pages/auth/callback.tsx
@@ -0,0 +1,18 @@
+import {useEffect} from "react";
+
+export default function GoogleAuthCallback() {
+ useEffect(() => {
+ const params = new URLSearchParams(window.location.search);
+ const code = params.get('code');
+ const state = params.get('state');
+ console.log('/auth/callback code', code);
+
+ if (code) {
+ // Send code back to native app
+ const deepLink = `com.compassmeet://auth?code=${encodeURIComponent(code)}&state=${encodeURIComponent(state || '')}`;
+ window.location.href = deepLink;
+ } else {
+ document.body.textContent = 'Missing code in redirect.';
+ }
+ }, []);
+}