auth 2.0 from Microsoft not redirecting to call back url after successful permission accept

I have the following NodeJS code

async onedrive (
    addon: AddOn,
    app: express.Application,
    req: any,
    res: any
) {
    const storageType = req.query.storageType; // Get the selected storage type from the query parameter
    const selectedScopes = scopes[storageType];
    if (!selectedScopes) {
      return res.status(400).send('Invalid storage type');
    }
    const authUrl = `https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=${CLIENT_ID}&scope=${encodeURIComponent(selectedScopes)}&response_type=code&response_mode=query&redirect_uri=${encodeURIComponent(REDIRECT_URI)}&prompt=consent&state=${encodeURIComponent(storageType)}`;
    res.json({ authUrl }); // Send the URL as a JSON response 
}



async callback (
       addon: AddOn,
       app: express.Application,
       req: any,
       res: any
   ) {
       const code = req.query.code; 
       const storageType = req.query.state;   
       // const filePath = path.join(__dirname, 'profile_picture.jpg'); // Define the path where you want to save the image
       try {
      
           const selectedScopes = scopes[storageType];
           if (!selectedScopes) {
           return res.status(400).send('Invalid storage type');
           }
           const params = new URLSearchParams();
           params.append('client_id', CLIENT_ID);
           params.append('scope', selectedScopes);
           params.append('redirect_uri', REDIRECT_URI);
           params.append('client_secret', CLIENT_SECRET);
           params.append('code', code);
           params.append('grant_type', 'authorization_code');
   
           // Exchange the authorization code for an access token
           const tokenResponse = await axios.post(`https://login.microsoftonline.com/common/oauth2/v2.0/token`, params, {
               headers: {
                   'Content-Type': 'application/x-www-form-urlencoded',
               },
           });
   
           const accessToken = tokenResponse.data.access_token;
           const refreshToken = tokenResponse.data.refresh_token;
           const expiryDate = tokenResponse.data.expires_in;
           const returnData = {
                   access_token: accessToken,
                   refresh_token: refreshToken,
               };
               var io = req.app.get('socketio');
               var sessionId = req.app.get('sessionId');
               io.to(sessionId).emit("response", returnData);
               res.sendFile(path.resolve("./loginSuccess.html"));
     } 
       catch (error: any) {
           console.error('Error authenticating with OneDrive:', error.response ? error.response.data : error.message);
           res.status(500).send('Authentication failed.');
       }
   }

when i am redirected to get a token from https://login.microsoftonline.com/common/oauth2 i am getting the following admin request approval
i asked my admin and he approved my request but yet nothing happened and i am not being redirected to the callback URL, what may be the issue? am i missing something?

although the call back URL is valid and working from azure side as if i click on go back to app i got the authorization failed message that i am setting

1

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa

auth 2.0 from Microsoft not redirecting to call back url after successful permission accept

I have the following NodeJS code

async onedrive (
    addon: AddOn,
    app: express.Application,
    req: any,
    res: any
) {
    const storageType = req.query.storageType; // Get the selected storage type from the query parameter
    const selectedScopes = scopes[storageType];
    if (!selectedScopes) {
      return res.status(400).send('Invalid storage type');
    }
    const authUrl = `https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=${CLIENT_ID}&scope=${encodeURIComponent(selectedScopes)}&response_type=code&response_mode=query&redirect_uri=${encodeURIComponent(REDIRECT_URI)}&prompt=consent&state=${encodeURIComponent(storageType)}`;
    res.json({ authUrl }); // Send the URL as a JSON response 
}



async callback (
       addon: AddOn,
       app: express.Application,
       req: any,
       res: any
   ) {
       const code = req.query.code; 
       const storageType = req.query.state;   
       // const filePath = path.join(__dirname, 'profile_picture.jpg'); // Define the path where you want to save the image
       try {
      
           const selectedScopes = scopes[storageType];
           if (!selectedScopes) {
           return res.status(400).send('Invalid storage type');
           }
           const params = new URLSearchParams();
           params.append('client_id', CLIENT_ID);
           params.append('scope', selectedScopes);
           params.append('redirect_uri', REDIRECT_URI);
           params.append('client_secret', CLIENT_SECRET);
           params.append('code', code);
           params.append('grant_type', 'authorization_code');
   
           // Exchange the authorization code for an access token
           const tokenResponse = await axios.post(`https://login.microsoftonline.com/common/oauth2/v2.0/token`, params, {
               headers: {
                   'Content-Type': 'application/x-www-form-urlencoded',
               },
           });
   
           const accessToken = tokenResponse.data.access_token;
           const refreshToken = tokenResponse.data.refresh_token;
           const expiryDate = tokenResponse.data.expires_in;
           const returnData = {
                   access_token: accessToken,
                   refresh_token: refreshToken,
               };
               var io = req.app.get('socketio');
               var sessionId = req.app.get('sessionId');
               io.to(sessionId).emit("response", returnData);
               res.sendFile(path.resolve("./loginSuccess.html"));
     } 
       catch (error: any) {
           console.error('Error authenticating with OneDrive:', error.response ? error.response.data : error.message);
           res.status(500).send('Authentication failed.');
       }
   }

when i am redirected to get a token from https://login.microsoftonline.com/common/oauth2 i am getting the following admin request approval
i asked my admin and he approved my request but yet nothing happened and i am not being redirected to the callback URL, what may be the issue? am i missing something?

although the call back URL is valid and working from azure side as if i click on go back to app i got the authorization failed message that i am setting

1

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật