Skip to content

Commit

Permalink
Merge pull request #338 from getmaxun/routing
Browse files Browse the repository at this point in the history
feat: redirect to robot integrate route after google oauth
  • Loading branch information
amhsirak authored Jan 10, 2025
2 parents 32856c7 + 2077546 commit 56e2ced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/routes/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}` });
}
Expand Down

0 comments on commit 56e2ced

Please sign in to comment.