Jelajahi Sumber

Remove redirect uri from oauth process

Lee Morgan 6 tahun lalu
induk
melakukan
56259681a2
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      controllers/otherData.js

+ 1 - 1
controllers/otherData.js

@@ -212,7 +212,7 @@ module.exports = {
 
     //Get - Redirects user to Clover OAuth page
     clover: function(req, res){
-        return res.redirect(`${process.env.CLOVER_ADDRESS}/oauth/authorize?client_id=${process.env.SUBLINE_CLOVER_APPID}&redirect_uri=localhost:8080/cloverauth/`);
+        return res.redirect(`${process.env.CLOVER_ADDRESS}/oauth/authorize?client_id=${process.env.SUBLINE_CLOVER_APPID}`);
     },
 
     cloverAuth: function(req, res){