feat: get robotId from query

This commit is contained in:
karishmas6
2024-10-17 12:32:08 +05:30
parent 3817f65c33
commit 3cf084b102

View File

@@ -188,10 +188,8 @@ router.get('/google', (req, res) => {
});
// Step 2: Handle Google OAuth callback
router.post('/google/callback', requireSignIn, async (req, res) => {
const { code } = req.query;
const { robotId } = req.body;
router.get('/google/callback', requireSignIn, async (req, res) => {
const { code, robotId } = req.query;
try {
if (!robotId) {
return res.status(400).json({ message: 'Robot ID is required' });