This commit is contained in:
parent
3e5d65c849
commit
ba608000e2
|
|
@ -111,28 +111,10 @@
|
||||||
|
|
||||||
var gauth;
|
var gauth;
|
||||||
function googleInit() {
|
function googleInit() {
|
||||||
gapi.load('auth2', function () {
|
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 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(
|
var naverLogin = new naver.LoginWithNaverId({clientId: "@naverClientId",callbackUrl: "https://www.ynicte.com/Account/NaverCallback",isPopup: true,loginButton: { color: "green", type: 3, height: 60 }});
|
||||||
{
|
|
||||||
clientId: "@naverClientId",
|
|
||||||
callbackUrl: "https://www.ynicte.com/Account/NaverCallback",
|
|
||||||
isPopup: true,
|
|
||||||
loginButton: { color: "green", type: 3, height: 60 }
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
function loginWithKakao() {
|
function loginWithKakao() {
|
||||||
Kakao.Auth.login({
|
Kakao.Auth.login({
|
||||||
|
|
|
||||||
|
|
@ -33,30 +33,10 @@
|
||||||
snsInit();
|
snsInit();
|
||||||
});
|
});
|
||||||
var gauth;
|
var gauth;
|
||||||
function googleInit() {
|
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(
|
var naverLogin = new naver.LoginWithNaverId({ clientId: "@naverClientId",callbackUrl: "https://www.ynicte.com/Account/NaverCallbackJoin",isPopup: true, loginButton: { color: "green", type: 3, height: 60 }});
|
||||||
{
|
|
||||||
clientId: "@naverClientId",
|
|
||||||
callbackUrl: "https://www.ynicte.com/Account/NaverCallbackJoin",
|
|
||||||
isPopup: true,
|
|
||||||
loginButton: { color: "green", type: 3, height: 60 }
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
function loginWithKakao() {
|
function loginWithKakao() {
|
||||||
Kakao.Auth.login({
|
Kakao.Auth.login({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue