컨텐츠로 건너뛰기

Auth0

@capgo/capacitor-social-login Auth0을 두 가지 방법으로 지원합니다.:

  • SocialLoginAuthConnect preset과 함께 auth0 직접
  • 엔드포인트에 대한 완전한 제어를 원하신다면 구성 설정을 사용하세요. oauth2 Auth Connect preset 예시

Auth0을 두 가지 방법으로 지원합니다.

인증 연결 프리셋 예제 섹션
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',
});

직접 OAuth2 예제

직접 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',
},
});
인증 제공자

인증0에서 계속 섹션

인증0에서 계속

인증을 위해 사용 중이라면 Auth0 인증 및 계정 흐름을 계획하고 있다면 Cloudflare Using @capgo/capacitor-social-login for the native capability in Using @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 Capacitor 두 단계 인증 구현 세부 사항에 대한 정보입니다.