설명서
Social Login에 대한 튜토리얼
Using @capgo/capacitor-social-login
All social logins in one plugin for Web, iOS, and Android. It supports Google, Apple, Facebook, Twitter/X, and generic OAuth2/OIDC providers such as GitHub, Microsoft Entra ID, Auth0, Okta, and Keycloak.
구글, 애플, 페이스북, 트위터, __CAPGO_KEEP_0__
npm install @capgo/capacitor-social-login
npx cap sync
설치
initialize이 플러그인은 다음을 제공합니다.login- 플러그인을 초기화합니다.logout- 로그아웃.isLoggedIn- 로그인 상태 확인.
예시 사용
initialize
플러그인을 초기화합니다.
import { SocialLogin } from '@capgo/capacitor-social-login';
await SocialLogin.initialize({} as InitializeOptions);
login
선택한 제공자로 로그인합니다.
import { SocialLogin } from '@capgo/capacitor-social-login';
await SocialLogin.login({} as Extract<LoginOptions, { provider: T }>);
logout
로그아웃.
import { SocialLogin } from '@capgo/capacitor-social-login';
await SocialLogin.logout({} as {
provider: 'apple' | 'google' | 'facebook' | 'twitter' | 'oauth2';
providerId?: string;
});
isLoggedIn
로그인 상태 확인.
import { SocialLogin } from '@capgo/capacitor-social-login';
await SocialLogin.isLoggedIn({} as isLoggedInOptions);
전체 참조
- GitHub: https://github.com/Cap-go/capacitor-social-login/
- 문서: /docs/plugins/social-login/
Using @capgo/capacitor-social-login
Capacitor-Social-Login을 사용 중이라면 Using @capgo/capacitor-social-login 인증 및 계정 흐름을 계획하고 연결하려면 @capgo/capacitor-social-login for the implementation detail in @capgo/capacitor-social-login, Getting Started Getting Started의 구현 세부 정보를 참조하세요 @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 Two-factor authentication Capgo 플러그인으로 두 단계 인증 구현을 위해