내용으로 건너뛰기

Apple 로그인 (IOS)

GitHub

IOS에서 Apple 로그인 설정을 위해 필요한 것을 나열해 보겠습니다.

  1. 앱의 기능을 구성하세요.

    이 작업을 수행하려면 Xcode를 열어 주세요, 클릭하여 App XCode 앱

  2. 올바른 대상이 선택되어 있는지 확인하세요.

    XCode 앱 대상

  3. 올바른 대상이 선택되어 있는지 확인하세요. XCode 앱 대상 Sign in with Apple 기능입니다.

    App XCode 기능 추가

    주의

  4. 참고

    // onMounted is vue specific
    onMounted(() => {
    SocialLogin.initialize({
    apple: {}
    })
    });
  5. 로그인 프로세스를 시작할 버튼을 만들겠습니다.

    버튼이 호출해야 하는 함수는 다음과 같습니다.

    async function loginApple() {
    const res = await SocialLogin.login({
    provider: 'apple',
    options: {}
    })
  6. 실제 기기에서 앱을 실행하고 테스트하세요. PHYSICAL 정확하게 따라오셨다면 버튼을 클릭한 후 다음 화면을 볼 수 있을 것입니다.

    iOS 기기에서 Apple Sign In 프롬프트

    그의 그것! 이제 모두 준비되었습니다.

Apple 로그인 초기화

제목이 'Apple 로그인 초기화'인 섹션

Section titled “Initialize Apple login”

인증하기 initialize provider와 함께 apple iOS에서 로그인하기 전에 clientId iOS에서 운영 체제가 직접 사용하지 않습니다. 플러그인은 사용자에게 어떤 제공자를 초기화할지 알기 위해 사용합니다.

await SocialLogin.initialize({
apple: {
clientId: 'your-client-id',
},
});
const res = await SocialLogin.login({
provider: 'apple',
options: {
scopes: ['email', 'name'],
},
});

애플 로그인에서 계속

애플 로그인에서 계속

iOS에서 애플 로그인을 사용하여 인증 및 계정 흐름을 계획하고 있다면 @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-social-login iOS에서 @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-social-login을 사용하는 경우 @capgo/capacitor-social-login @capgo/capacitor-social-login @capgo/capacitor-social-login for the implementation detail in @capgo/capacitor-social-login, @capgo/capacitor-passkey for the implementation detail in @capgo/capacitor-passkey, @capgo/capacitor-native-biometric for the implementation detail in @capgo/capacitor-native-biometric, and 두 단계 인증 두 단계 인증에 대한 구현 세부 정보.