À¥¿¡¼ ¾ÖÇà ·Î±×ÀΠó¸®Çϱ⠱¸Çö ÁßÀε¥
ÀÀ´ä°ªÀ» ¾î¶»°Ô ó¸®ÇØ¾ß ÇÏ´ÂÁö ¸ð¸£°Ú½À´Ï´Ù.
rediret_url ±îÁö´Â °¡´Âµ¥ ¿©±â¼ ÀÀ´ä°ªÀ» ¾î¶»°Ô ¹ÞÀ¸¸é µÇ³ª¿ä?
¿©±â º¸¸é
https://developer.apple.com/documentation/sign_in_with_apple/sign_in_with_apple_js/configuring_your_webpage_for_sign_in_with_apple
document.addEventListener('AppleIDSignInOnSuccess', (data) => {});document.addEventListener('AppleIDSignInOnFailure', (error) => {
});
À̰Ÿ¸ Ãß°¡ÇÏ¸é µÇ´Â°Í °°Àºµ¥ ¾î¶»°Ô Ãß°¡ÇØ¾ß Çϴ°ǰ¡¿ä?
¼Ò½º ±×´ë·Î »ç¿ëÇغ¸´Ï success, fail µÑ Áß¿¡ ¾Æ¹«°Íµµ ŸÁö ¾Ê°í Àֳ׿ä.
|
//handle error.
¿©±â ¾È¿¡ Äڵ带 ±¸ÇöÇϼžßÁÒ
±×³É ±âº»ÀûÀÎ oauth2.0 ÇÁ·ÎÅäÄÝÀ̳׿ä
success ¾È¿¡ ¾Æ·¡ ÄÚµå ³ÖÀ¸½Ã¸é ·Î±×ÀÎ µÈ °´Ã¼°¡ ¸®Åϵɰ̴ϴÙ.
try {const data = await AppleID.auth.signIn()} catch ( error ) {//handle error.}