From 20775463a93126e540e4b5127c07bd74f1802853 Mon Sep 17 00:00:00 2001 From: amhsirak Date: Sat, 11 Jan 2025 00:41:25 +0530 Subject: [PATCH] feat: redirect to robot integrate route --- server/src/routes/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/routes/auth.ts b/server/src/routes/auth.ts index 084edb4b..837fcd8a 100644 --- a/server/src/routes/auth.ts +++ b/server/src/routes/auth.ts @@ -384,7 +384,7 @@ router.get( httpOnly: false, maxAge: 60000, }); - res.redirect(process.env.PUBLIC_URL as string || "http://localhost:5173"); + res.redirect(`${process.env.PUBLIC_URL}/robots/${robotId}/integrate` as string || `http://localhost:5173/robots/${robotId}/integrate`); } catch (error: any) { res.status(500).json({ message: `Google OAuth error: ${error.message}` }); }