¾È³çÇϼ¼¿ä
ÇöÀç 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" } }
ÀÌ °ªÀ» ¹Þ¾Æ¾ßÁö¸¸ ·Î±×ÀΠ󸮸¦ ÇÒÅÙµ¥ Á¦°¡ Ãʺ¸¶ó ÀÌÇØ°¡ ¾È°¡³×¿ä. ¤Ì | |
|