This commit is contained in:
hyunho 2020-11-27 03:54:47 +00:00
parent 3e5d65c849
commit ba608000e2
2 changed files with 4 additions and 42 deletions

View File

@ -111,28 +111,10 @@
var gauth;
function googleInit() {
gapi.load('auth2', function () {
var gauth = gapi.auth2.init({
client_id: "@googleClientId",
scope: 'profile'
});
gauth.then(function () {
console.log('google init success');
}, function () {
console.error('google init fail');
})
});
gapi.load('auth2', function () {var gauth = gapi.auth2.init({client_id: "@googleClientId", scope: 'profile'});gauth.then(function () {console.log('google init success');}, function () {console.error('google init fail');})});
}
var naverLogin = new naver.LoginWithNaverId(
{
clientId: "@naverClientId",
callbackUrl: "https://www.ynicte.com/Account/NaverCallback",
isPopup: true,
loginButton: { color: "green", type: 3, height: 60 }
}
);
var naverLogin = new naver.LoginWithNaverId({clientId: "@naverClientId",callbackUrl: "https://www.ynicte.com/Account/NaverCallback",isPopup: true,loginButton: { color: "green", type: 3, height: 60 }});
function loginWithKakao() {
Kakao.Auth.login({

View File

@ -33,30 +33,10 @@
snsInit();
});
var gauth;
function googleInit() {
gapi.load('auth2', function () {
var gauth = gapi.auth2.init({
client_id: "@googleClientId",
scope: 'profile'
});
gauth.then(function () {
console.log('google init success');
}, function () {
console.error('google init fail');
})
});
}
function googleInit() {gapi.load('auth2', function () {var gauth = gapi.auth2.init({client_id: "@googleClientId",scope: 'profile'});gauth.then(function () {console.log('google init success');}, function () {console.error('google init fail');})});}
var naverLogin = new naver.LoginWithNaverId(
{
clientId: "@naverClientId",
callbackUrl: "https://www.ynicte.com/Account/NaverCallbackJoin",
isPopup: true,
loginButton: { color: "green", type: 3, height: 60 }
}
);
var naverLogin = new naver.LoginWithNaverId({ clientId: "@naverClientId",callbackUrl: "https://www.ynicte.com/Account/NaverCallbackJoin",isPopup: true, loginButton: { color: "green", type: 3, height: 60 }});
function loginWithKakao() {
Kakao.Auth.login({