问题
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