GitHub
설치 단계와 이 플러그인의 전체 마크다운 가이드와 함께 설정 프롬프트를 복사하세요.
GitHub is supported through the built-in generic oauth2 설치 단계와 이 플러그인의 전체 마크다운 가이드와 함께 설정 프롬프트를 복사하세요.
설치 단계와 이 플러그인의 전체 마크다운 가이드와 함께 설정 프롬프트를 복사하세요.
Section titled “예시”import { SocialLogin } from '@capgo/capacitor-social-login';
await SocialLogin.initialize({ oauth2: { github: { appId: 'your-github-client-id', authorizationBaseUrl: 'https://github.com/login/oauth/authorize', accessTokenEndpoint: 'https://github.com/login/oauth/access_token', redirectUrl: 'myapp://oauth/github', scope: 'read:user user:email', pkceEnabled: true, resourceUrl: 'https://api.github.com/user', }, },});
const result = await SocialLogin.login({ provider: 'oauth2', options: { providerId: 'github', },});
console.log(result.result.accessToken?.token);console.log(result.result.resourceData);GitHub에서 계속
Section titled “GitHub에서 계속”Capgo를 사용 중이라면 GitHub 인증 및 계정 흐름을 계획하고 연결하기 위해 @capgo/capacitor-social-login 사용 native 기능을 사용하는 @capgo/capacitor-social-login을 위해 @capgo/capacitor-social-login native 기능 구현 세부 정보를 위한 @capgo/capacitor-social-login @capgo/capacitor-passkey 구현 세부 정보를 위한 @capgo/capacitor-passkey native 기능 구현 세부 정보를 위한 @capgo/capacitor-native-biometric 구현 세부 정보를 위한 @capgo/capacitor-native-biometric, 그리고 두 단계 인증 구현 세부 정보를 위한 두 단계 인증