Auth0
복사할 수 있는 설치 명령어와 이 플러그인의 전체 마크다운 가이드를 포함합니다.
개요
Overview@capgo/capacitor-social-login Auth0을 지원하는 두 가지 방법이 있습니다:
SocialLoginAuthConnectpresetauth0직접- 설정
oauth2Auth Connect preset 예시
클립보드 복사
직접 OAuth2 예시import { SocialLoginAuthConnect } from '@capgo/capacitor-social-login';
await SocialLoginAuthConnect.initialize({ authConnect: { auth0: { domain: 'https://your-tenant.auth0.com', clientId: 'your-auth0-client-id', redirectUrl: 'myapp://oauth/auth0', audience: 'https://your-api.example.com', }, },});
const result = await SocialLoginAuthConnect.login({ provider: 'auth0',});Auth Connect preset 예시
Direct OAuth2 예시import { SocialLogin } from '@capgo/capacitor-social-login';
await SocialLogin.initialize({ oauth2: { auth0: { appId: 'your-auth0-client-id', authorizationBaseUrl: 'https://your-tenant.auth0.com/authorize', accessTokenEndpoint: 'https://your-tenant.auth0.com/oauth/token', redirectUrl: 'myapp://oauth/auth0', scope: 'openid profile email offline_access', pkceEnabled: true, additionalParameters: { audience: 'https://your-api.example.com', }, logoutUrl: 'https://your-tenant.auth0.com/v2/logout', }, },});
const result = await SocialLogin.login({ provider: 'oauth2', options: { providerId: 'auth0', },});관련 문서
관련 문서 섹션Auth0에서 계속하기
Auth0을 사용하여인증 및 계정 흐름을 계획하고 Auth0을 @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-social-login 플러그인과 연결합니다. Using @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-social-login 플러그인을 사용하여 @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-social-login 플러그인의 네이티브 기능을 사용합니다. Using @capgo/capacitor-social-login for the native capability in Using @capgo/capacitor-social-login, @capgo/capacitor-social-login Capgo에서 @capgo/capacitor-social-login @capgo/capacitor-passkey Capgo에서 @capgo/capacitor-passkey @capgo/capacitor-native-biometric Capgo에서 @capgo/capacitor-native-biometric 두 단계 인증 Capgo에서 두 단계 인증