Skip to content

Commit 56e2ced

Browse files
authored
Merge pull request #338 from getmaxun/routing
feat: redirect to robot integrate route after google oauth
2 parents 32856c7 + 2077546 commit 56e2ced

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/routes/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ router.get(
384384
httpOnly: false,
385385
maxAge: 60000,
386386
});
387-
res.redirect(process.env.PUBLIC_URL as string || "http://localhost:5173");
387+
res.redirect(`${process.env.PUBLIC_URL}/robots/${robotId}/integrate` as string || `http://localhost:5173/robots/${robotId}/integrate`);
388388
} catch (error: any) {
389389
res.status(500).json({ message: `Google OAuth error: ${error.message}` });
390390
}

0 commit comments

Comments
 (0)