From 2bb0bc1588b89921285ac09d5508438f7278c200 Mon Sep 17 00:00:00 2001 From: Nik Graf Date: Wed, 30 Jul 2025 21:20:50 +0200 Subject: [PATCH] update connect url --- .../template-nextjs/Components/Layout.tsx | 2 +- .../Components/Login/LoginButton.tsx | 2 +- .../template-nextjs/Components/Login/LoginForm.tsx | 2 +- .../template-vite-react/src/components/navbar.tsx | 14 +++++++------- .../template-vite-react/src/routes/index.tsx | 2 +- .../template-vite-react/src/routes/login.tsx | 2 +- docs/docs/authentication.md | 2 +- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/apps/create-hypergraph/template-nextjs/Components/Layout.tsx b/apps/create-hypergraph/template-nextjs/Components/Layout.tsx index 67abf35c..3a223f5a 100644 --- a/apps/create-hypergraph/template-nextjs/Components/Layout.tsx +++ b/apps/create-hypergraph/template-nextjs/Components/Layout.tsx @@ -36,7 +36,7 @@ export function Layout({ children }: Readonly<{ children: React.ReactNode }>) { const handleSignIn = () => { redirectToConnect({ storage: localStorage, - connectUrl: 'https://hypergraph-connect.vercel.app/', + connectUrl: 'https://connect.geobrowser.io/', successUrl: `${window.location.origin}/authenticate-success`, redirectFn: (url: URL) => { window.location.href = url.toString(); diff --git a/apps/create-hypergraph/template-nextjs/Components/Login/LoginButton.tsx b/apps/create-hypergraph/template-nextjs/Components/Login/LoginButton.tsx index 0bd5336d..4af0cb6d 100644 --- a/apps/create-hypergraph/template-nextjs/Components/Login/LoginButton.tsx +++ b/apps/create-hypergraph/template-nextjs/Components/Login/LoginButton.tsx @@ -10,7 +10,7 @@ export function LoginButton() { const handleSignIn = () => { redirectToConnect({ storage: localStorage, - connectUrl: 'https://hypergraph-connect.vercel.app/', + connectUrl: 'https://connect.geobrowser.io/', successUrl: `${window.location.origin}/authenticate-success`, redirectFn: (url: URL) => { window.location.href = url.toString(); diff --git a/apps/create-hypergraph/template-nextjs/Components/Login/LoginForm.tsx b/apps/create-hypergraph/template-nextjs/Components/Login/LoginForm.tsx index a9e1213a..69e8560c 100644 --- a/apps/create-hypergraph/template-nextjs/Components/Login/LoginForm.tsx +++ b/apps/create-hypergraph/template-nextjs/Components/Login/LoginForm.tsx @@ -15,7 +15,7 @@ export function LoginForm() { onClick={() => { redirectToConnect({ storage: localStorage, - connectUrl: 'https://hypergraph-connect.vercel.app/', + connectUrl: 'https://connect.geobrowser.io/', successUrl: `${window.location.origin}/authenticate-success`, redirectFn: (url: URL) => { window.location.href = url.toString(); diff --git a/apps/create-hypergraph/template-vite-react/src/components/navbar.tsx b/apps/create-hypergraph/template-vite-react/src/components/navbar.tsx index 028ff641..1f01dd46 100644 --- a/apps/create-hypergraph/template-vite-react/src/components/navbar.tsx +++ b/apps/create-hypergraph/template-vite-react/src/components/navbar.tsx @@ -1,11 +1,11 @@ import { Button } from '@/components/ui/button'; import { - NavigationMenu, - NavigationMenuContent, - NavigationMenuItem, - NavigationMenuLink, - NavigationMenuList, - NavigationMenuTrigger, + NavigationMenu, + NavigationMenuContent, + NavigationMenuItem, + NavigationMenuLink, + NavigationMenuList, + NavigationMenuTrigger, } from '@/components/ui/navigation-menu'; import { TooltipProvider } from '@/components/ui/tooltip'; import { useHypergraphApp, useHypergraphAuth } from '@graphprotocol/hypergraph-react'; @@ -20,7 +20,7 @@ export function Navbar() { const handleSignIn = () => { redirectToConnect({ storage: localStorage, - connectUrl: 'https://hypergraph-connect.vercel.app/', + connectUrl: 'https://connect.geobrowser.io/', successUrl: `${window.location.origin}/authenticate-success`, redirectFn: (url: URL) => { window.location.href = url.toString(); diff --git a/apps/create-hypergraph/template-vite-react/src/routes/index.tsx b/apps/create-hypergraph/template-vite-react/src/routes/index.tsx index bd7c6eee..228ac11f 100644 --- a/apps/create-hypergraph/template-vite-react/src/routes/index.tsx +++ b/apps/create-hypergraph/template-vite-react/src/routes/index.tsx @@ -12,7 +12,7 @@ function Index() { const handleSignIn = () => { redirectToConnect({ storage: localStorage, - connectUrl: 'https://hypergraph-connect.vercel.app/', + connectUrl: 'https://connect.geobrowser.io/', successUrl: `${window.location.origin}/authenticate-success`, redirectFn: (url: URL) => { window.location.href = url.toString(); diff --git a/apps/create-hypergraph/template-vite-react/src/routes/login.tsx b/apps/create-hypergraph/template-vite-react/src/routes/login.tsx index bc11840e..f3a87f34 100644 --- a/apps/create-hypergraph/template-vite-react/src/routes/login.tsx +++ b/apps/create-hypergraph/template-vite-react/src/routes/login.tsx @@ -14,7 +14,7 @@ function Login() { redirectToConnect({ storage: localStorage, // connectUrl: 'http://localhost:5180', - connectUrl: 'https://hypergraph-connect.vercel.app/', + connectUrl: 'https://connect.geobrowser.io/', successUrl: `${window.location.origin}/authenticate-success`, redirectFn: (url: URL) => { window.location.href = url.toString(); diff --git a/docs/docs/authentication.md b/docs/docs/authentication.md index a8afc2f7..d31beece 100644 --- a/docs/docs/authentication.md +++ b/docs/docs/authentication.md @@ -101,7 +101,7 @@ function Login() { onClick={() => { redirectToConnect({ storage: localStorage, - connectUrl: "https://hypergraph-connect.vercel.app/", + connectUrl: "https://connect.geobrowser.io/", successUrl: `${window.location.origin}/authenticate-success`, // your app id (any valid uuid) appId: "93bb8907-085a-4a0e-83dd-62b0dc98e793",