»Ë»Ñ Æ÷·³
°³¹ßÀÚÆ÷·³ ÀÔ´Ï´Ù.
  • ºÏ¸¶Å© ¾ÆÀÌÄÜ

À¥¿¡¼­ ¾ÖÇà ·Î±×ÀΠó¸® Çϱâ Áú¹®ÀÔ´Ï´Ù. °í¼ö´Ôµé Á¶¾ð ºÎŹµå¸³´Ï´Ù.

  • ¹«³à´Ï
  • µî·ÏÀÏ 2021-04-08 10:13
  • Á¶È¸¼ö 501
¾È³çÇϼ¼¿ä

ÇöÀç callback ÆäÀÌÁö¿¡ ¾Æ·¡¿Í °°ÀÌ Àû¿ëµÇ¾î ÀÖ½À´Ï´Ù.

<scRIPT LANGUAGE="Javascript">
<!--
//Listen for authorization success
document.addEventListener('AppleIDSignInOnSuccess', async(data) => {
try {
const data = await AppleID.auth.signIn()
} catch ( error ) {
//handle error.
}
});
//Listen for authorization failures
document.addEventListener('AppleIDSignInOnFailure', async(error) => {
  //handle error.
              // alert(JSON.stringify(error));
  console.log(error);
});
//-->
</scRIPT>

±×·³ ¾Æ·¡¿Í °°ÀÌ ÀÀ´ä°ªÀ» ¹ÞÀ» ÁÙ ¾Ë¾Ò´Âµ¥ ¾Æ¹«°Íµµ ÂïÈ÷°í ÀÖÁö ¾Ê³×¿ä ¤Ð

{
"state": "xxx",
"code": "yyy",
"id_token": "zzz",
"user": {
"name": {
"firstName":"Gil-dong",
"lastName":"Hong"
},
"email":"example@privaterelay.appleid.com"
}
}

ÀÌ °ªÀ» ¹Þ¾Æ¾ßÁö¸¸ ·Î±×ÀΠ󸮸¦ ÇÒÅÙµ¥ Á¦°¡ Ãʺ¸¶ó ÀÌÇØ°¡ ¾È°¡³×¿ä. ¤Ì

0
ÃßõÇϱ⠴ٸ¥ÀÇ°ß 0
|
°øÀ¯¹öÆ°
  • ¾Ë¸² ¿å¼³, »óó ÁÙ ¼ö ÀÖ´Â ¾ÇÇÃÀº »ï°¡ÁÖ¼¼¿ä.
©¹æ »çÁø  
¡â ÀÌÀü±Û¡ä ´ÙÀ½±Û