Google oAuth prob. Google Sign in is disabled

北城以北 提交于 2019-12-24 08:27:23

问题


I am using a script that checks if current active email is registered in our sheet later on we noticed that the script gives us an error called "Sign in with Google temporarily disabled for this app" we send a review for this concern with the google and this the reply. My question is how can I achieve this? what is the proper way to solve this .thnx

Here is my code.

function doGet() {
  var HR_SprdSheet = SpreadsheetApp.openById("Awesome Sheet Link Here :D");
  var HR_Sheet = HR_SprdSheet.getSheetByName("Email Registration");
  var Email_Range = HR_Sheet.getRange("A3:A");
  var Email_Values = Email_Range.getDisplayValues();
  var Appl_Email = Session.getActiveUser().getEmail();
  var message; 

  var notfound = HtmlService.createHtmlOutputFromFile("notfound.html");
  var sample = HtmlService.createHtmlOutputFromFile("sample .html");

  for (var i = 0; i < Email_Values.length; i++) { 
    if (Email_Values[i][0] == Appl_Email) {        
      message = 1;                                 
      break;                                       
    } else {                                       
      message = 0;                                  
    }                                              
  }                                               

  if (message == 1) {
    return sample ;
  } else {
    Logger.log(1);
    return notfound;
  }
}

Here is the scopes

来源:https://stackoverflow.com/questions/50791025/google-oauth-prob-google-sign-in-is-disabled

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!