GitHub
설치 단계와 이 플러그인의 전체 마크다운 가이드를 포함한 설정 프롬프트 복사
GitHub is supported through the built-in generic oauth2 설치 단계와 이 플러그인의 전체 마크다운 가이드를 포함한 설정 프롬프트 복사
설치
예시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
이동 GitHub__CAPGO_KEEP_0__을 사용 중이라면 GitHub __CAPGO_KEEP_0__과 연결하여 capgo/capacitor-social-login을 사용합니다. native 기능을 사용하는 @capgo/capacitor-social-login을 위해 @capgo/capacitor-social-login native 기능 구현 세부 사항을 위한 @capgo/capacitor-social-login @capgo/capacitor-passkey 구현 세부 사항을 위한 @capgo/capacitor-passkey @capgo/capacitor-native-biometric 구현 세부 사항을 위한 @capgo/capacitor-native-biometric, 그리고 두 단계 인증 두 단계 인증 구현 세부 사항을 위한