파이어베이스 인증 __CAPGO_KEEP_0__ 저장소
설치 단계와 이 플러그인의 전체 마크다운 가이드를 포함하는 설정 지시를 복사하세요.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-firebase-authentication`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/firebase-authentication/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
설치
설치AI-assisted 설치를 사용하여 플러그인을 설치할 수 있습니다. 다음 명령어를 사용하여 AI 도구에 Capgo 기능을 추가하세요:
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins그런 다음 다음 프롬프트를 사용하세요:
Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-firebase-authentication` plugin in my project.만약 Manual Setup을 선호한다면, 플러그인을 설치하기 위해 다음 명령어를 실행하고 아래의 플랫폼별 지침을 따르세요:
bun add @capgo/capacitor-firebase-authenticationbunx cap sync수입
수입 섹션import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';API 개요
API 개요applyActionCode
__CAPGO_KEEP_0__code을 사용하여 사용자에게 이메일로 보낸 인증 코드를 적용합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.applyActionCode({ oobCode: 'oob-code' });confirmPasswordReset
__CAPGO_KEEP_0__비밀번호 재설정 과정을 완료합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.confirmPasswordReset({ oobCode: 'oob-code', newPassword: 'new-password',});confirmVerificationCode
__CAPGO_KEEP_0__휴대폰 번호 인증 과정을 완료합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.confirmVerificationCode({ verificationId: 'phoneCodeSent', verificationCode: 'phoneCodeSent',});// The result holds sensitive values: use it without logging it.createUserWithEmailAndPassword
__CAPGO_KEEP_0__이메일과 비밀번호를 사용하여 새로운 사용자 계정을 생성합니다. 새로운 계정이 생성된 경우 사용자는 자동으로 로그인됩니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.createUserWithEmailAndPassword({ email: 'user@example.com', password: 'password',});// The result holds sensitive values: use it without logging it.deleteUser
사용자 삭제사용자를 삭제하고 로그아웃합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.deleteUser();fetchSignInMethodsForEmail
이메일 주소에 대한 로그인 방법 가져오기이메일 주소에 대한 로그인 방법을 가져옵니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.fetchSignInMethodsForEmail({ email: 'user@example.com' });console.log(result);getCurrentUser
현재 로그인한 사용자 가져오기현재 로그인한 사용자를 가져옵니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.getCurrentUser();// The result holds sensitive values: use it without logging it.getPendingAuthResult
인증 결과 가져오기인증 결과를 반환합니다. SignInResult 앱이 웹 로그인 흐름을 시작하고 OS가 앱을 백그라운드에서 정리하는 경우.
안드로이드만 지원합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.getPendingAuthResult();// The result holds sensitive values: use it without logging it.getIdToken
getIdToken 섹션현재 로그인한 사용자의 Firebase Auth ID 토큰을 가져옵니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.getIdToken();// The result holds sensitive values: use it without logging it.getIdTokenResult
getIdTokenResult 섹션JSON Web Token (JWT)을 사용하여 사용자를 Firebase 서비스에 식별하는 데 사용되는 deserialize된 토큰을 반환합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.getIdTokenResult();// The result holds sensitive values: use it without logging it.getRedirectResult
getRedirectResult 섹션리다이렉트 기반 로그인 흐름에서 SignInResult 리다이렉트 기반 로그인 흐름에서
로그인에 실패하면 오류와 함께 실패합니다.
로그인 Redirect가 호출되지 않은 경우 null 사용자를 반환합니다. SignInResult 로그인 Redirect가 호출되지 않은 경우 null 사용자를 반환합니다.
웹 전용입니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.getRedirectResult();// The result holds sensitive values: use it without logging it.getTenantId
getTenantId 제목테넌트 ID를 가져옵니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.getTenantId();console.log(result);isSignInWithEmailLink
isSignInWithEmailLink 제목이메일 링크로 로그인하는 incoming 링크가 적합한지 확인합니다. signInWithEmailLink.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.isSignInWithEmailLink({ emailLink: 'https://example.com' });// The result holds sensitive values: use it without logging it.linkWithApple
linkWithApple 제목Apple 인증 제공자와 사용자 계정을 연결합니다.
사용자는 네이티브层에서 로그인되어야 합니다.
skipNativeAuth 이 설정 옵션은 여기에 영향을 미치지 않습니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.linkWithApple();// The result holds sensitive values: use it without logging it.linkWithEmailAndPassword
링크WithEmailAndPassword 제목이메일 인증 제공자와 사용자 계정을 연결합니다.
사용자는 네이티브层에서 로그인되어야 합니다.
skipNativeAuth 이 설정 옵션은 여기에 영향을 미치지 않습니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.linkWithEmailAndPassword({ email: 'user@example.com', password: 'password',});// The result holds sensitive values: use it without logging it.linkWithEmailLink
링크WithEmailLink 제목이메일 인증 제공자와 사용자 계정을 연결합니다.
사용자는 네이티브层에서 로그인되어야 합니다.
skipNativeAuth 이 설정 옵션은 여기에 영향을 미치지 않습니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.linkWithEmailLink({ email: 'user@example.com', emailLink: 'https://example.com',});// The result holds sensitive values: use it without logging it.linkWithFacebook
Facebook과 연결하기Facebook 인증 제공자와 사용자 계정을 연결합니다.
네이티브层에서 로그인한 상태여야 합니다.
skipNativeAuth 이 설정 옵션은 여기에 영향을 미치지 않습니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.linkWithFacebook();// The result holds sensitive values: use it without logging it.linkWithGameCenter
Game Center와 연결하기Game Center 인증 제공자와 사용자 계정을 연결합니다.
네이티브层에서 로그인한 상태여야 합니다.
skipNativeAuth 이 설정 옵션은 여기에 영향을 미치지 않습니다.
iOS에서만 사용할 수 있습니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.linkWithGameCenter();// The result holds sensitive values: use it without logging it.linkWithGithub
GitHub 연결유저 계정과 GitHub 인증 제공자를 연결합니다.
네이티브层에서 로그인한 유저만 사용할 수 있습니다. skipNativeAuth 이 설정은 여기서 효과가 없습니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.linkWithGithub();// The result holds sensitive values: use it without logging it.linkWithGoogle
Google 연결Microsoft 연결
네이티브层에서 로그인한 유저만 사용할 수 있습니다. skipNativeAuth 이 설정은 여기서 효과가 없습니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.linkWithGoogle();// The result holds sensitive values: use it without logging it.linkWithMicrosoft
GitHub 연결Microsoft 연결
사용자는 네이티브层에서 로그인되어야 합니다.
skipNativeAuth 이 설정 옵션은 여기에 영향을 미치지 않습니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.linkWithMicrosoft();// The result holds sensitive values: use it without logging it.linkWithOpenIdConnect
OpenID Connect와 연결하기OpenID Connect 제공자와 사용자 계정을 연결합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.linkWithOpenIdConnect({ providerId: 'provider-id-123' });// The result holds sensitive values: use it without logging it.linkWithPhoneNumber
전화번호와 연결하기인증을 완료했을 때 알림을 받으려면
사용자는 네이티브层에서 로그인되어야 합니다.
skipNativeAuth 이 설정 옵션은 여기에 영향을 미치지 않습니다.
Use the phoneVerificationCompleted listener to be notified when the verification is completed.
Use the phoneVerificationFailed 인증 실패 시 알림을 받을 리스너입니다.
인증 실패 시 사용하는 phoneCodeSent 인증 ID를 받을 리스너입니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.linkWithPhoneNumber({ phoneNumber: "+16505550101" });linkWithPlayGames
링크WithPlayGames 섹션Play Games 인증 제공자와 사용자 계정을 연결합니다.
사용자는 네이티브层에서 로그인되어 있어야 합니다.
skipNativeAuth 이 옵션은 이 섹션에서 영향을 미치지 않습니다.
Android에서만 사용 가능합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.linkWithPlayGames();// The result holds sensitive values: use it without logging it.linkWithTwitter
링크WithTwitter 섹션Twitter 인증 제공자와 사용자 계정을 연결합니다.
사용자는 네이티브层에서 로그인되어 있어야 합니다.
skipNativeAuth 구성 옵션은 이곳에 영향을 미치지 않습니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.linkWithTwitter();// The result holds sensitive values: use it without logging it.linkWithYahoo
링크위드 요하오 제목유저 계정을 요하오 인증 제공자와 연결합니다.
유저는 네이티브层에서 로그인되어야 합니다.
skipNativeAuth 구성 옵션은 이곳에 영향을 미치지 않습니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.linkWithYahoo();// The result holds sensitive values: use it without logging it.reload
리로드 제목로그인된 유저 계정 데이터를 다시 로드합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.reload();revokeAccessToken
액세스 토큰 취소 제목지정된 액세스 토큰을 취소합니다. 현재는 애플 OAuth 액세스 토큰만 지원합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.revokeAccessToken({ token: 'token-123' });sendEmailVerification
이메일 인증 메일 전송현재 로그인한 사용자에게 인증 이메일을 보냅니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.sendEmailVerification();sendPasswordResetEmail
이메일 재설정사용자에게 비밀번호 재설정 이메일을 보냅니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.sendPasswordResetEmail({ email: 'user@example.com' });sendSignInLinkToEmail
이메일 링크 전송사용자에게 이메일 주소와 이메일 링크를 전송합니다.
이메일 링크로 로그인 완료를 위해 signInWithEmailLink 이메일 주소와 이메일 링크를 전달합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.sendSignInLinkToEmail({ email: 'user@example.com', actionCodeSettings: { url: 'https://example.com' },});setLanguageCode
Section titled “언어 코드 설정”인증 연산에 사용되는 사용자 화면 언어 code를 설정합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.setLanguageCode({ languageCode: "en-US" });setPersistence
Section titled “세션 저장 유형 설정”현재 저장된 인증 세션에 대한 저장 유형을 설정합니다.
웹 전용
import { FirebaseAuthentication, Persistence } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.setPersistence({ persistence: Persistence.IndexedDbLocal });setTenantId
Section titled “테넌트 ID 설정”테넌트 ID를 설정합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.setTenantId({ tenantId: 'tenant-id-123' });signInAnonymously
Section titled “무작위로 로그인”무작위로 사용자를 로그인합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.signInAnonymously();// The result holds sensitive values: use it without logging it.signInWithApple
Apple 로그인 시작Apple 로그인 흐름을 시작합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.signInWithApple();// The result holds sensitive values: use it without logging it.signInWithCustomToken
Custom Token 로그인 시작Custom Token 로그인 흐름을 시작합니다.
이 메소드는 다른 메소드와 함께 사용할 수 없습니다. skipNativeAuth 이메일 및 비밀번호 로그인 시작 signInWithCustomToken Firebase JS SDK와 직접 인터페이스합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.signInWithCustomToken({ token: 'token-123' });// The result holds sensitive values: use it without logging it.signInWithEmailAndPassword
Copy to clipboardSection titled “signInWithCustomToken”
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.signInWithEmailAndPassword({ email: 'user@example.com', password: 'password',});// The result holds sensitive values: use it without logging it.signInWithEmailLink
“signInWithEmailLink” 섹션이메일과 이메일 로그인 링크를 사용하여 로그인합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.signInWithEmailLink({ email: 'user@example.com', emailLink: 'https://example.com',});// The result holds sensitive values: use it without logging it.signInWithFacebook
“signInWithFacebook” 섹션페이스북 로그인 흐름을 시작합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.signInWithFacebook();// The result holds sensitive values: use it without logging it.signInWithGameCenter
“signInWithGameCenter” 섹션게임 센터 로그인 흐름을 시작합니다.
iOS에서만 사용 가능합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.signInWithGameCenter();// The result holds sensitive values: use it without logging it.signInWithGithub
“signInWithGithub” 섹션GitHub 인증 시작 흐름을 시작합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.signInWithGithub();// The result holds sensitive values: use it without logging it.signInWithGoogle
signInWithGoogle 섹션구글 인증 시작 흐름을 시작합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.signInWithGoogle();// The result holds sensitive values: use it without logging it.signInWithMicrosoft
signInWithMicrosoft 섹션마이크로소프트 인증 시작 흐름을 시작합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.signInWithMicrosoft();// The result holds sensitive values: use it without logging it.signInWithOpenIdConnect
signInWithOpenIdConnect 섹션OpenID Connect 인증 시작 흐름을 시작합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.signInWithOpenIdConnect({ providerId: 'provider-id-123' });// The result holds sensitive values: use it without logging it.signInWithPhoneNumber
signInWithPhoneNumber 섹션휴대폰 번호를 사용하여 로그인 흐름을 시작합니다.
사용하여 phoneVerificationCompleted 인증이 완료되면 알림을 받을 수 있습니다. phoneVerificationFailed 사용하여 phoneCodeSent 인증이 실패하면 알림을 받을 수 있습니다.
사용하여
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.signInWithPhoneNumber({ phoneNumber: "+16505550101" });signInWithPlayGames
안드로이드 및 iOS에서만 사용할 수 있습니다.클립보드에 복사
Play Games 로그인 흐름을 시작합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.signInWithPlayGames();// The result holds sensitive values: use it without logging it.signInWithTwitter
Section titled “signInWithPlayGames”Twitter 로그인 흐름을 시작합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.signInWithTwitter();// The result holds sensitive values: use it without logging it.signInWithYahoo
signInWithYahooYahoo 로그인 흐름을 시작합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.signInWithYahoo();// The result holds sensitive values: use it without logging it.signOut
signOut로그아웃 흐름을 시작합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.signOut();unlink
unlink사용자 계정에서 제공자를 해제합니다.
import { FirebaseAuthentication, ProviderId } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.unlink({ providerId: ProviderId.APPLE });// The result holds sensitive values: use it without logging it.updateEmail
updateEmail현재 로그인한 사용자의 이메일 주소를 업데이트합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.updateEmail({ newEmail: 'user@example.com' });updatePassword
updatePassword현재 로그인한 사용자의 패스워드를 업데이트합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.updatePassword({ newPassword: 'new-password' });updateProfile
updateProfile사용자의 프로필 데이터를 업데이트합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.updateProfile({ displayName: 'display', photoUrl: 'https://example.com',});useAppLanguage
useAppLanguage사용자에게 보이는 언어 code를 기본 앱 언어로 설정합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.useAppLanguage();useEmulator
useEmulator애플리케이션을 인증 에뮬레이터와 통신하도록 구성하세요.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.useEmulator({ host: "127.0.0.1" });verifyBeforeUpdateEmail
verifyBeforeUpdateEmail 섹션현재 로그인한 사용자의 이메일 주소를 업데이트하기 전에 새로운 이메일 주소를 확인합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.verifyBeforeUpdateEmail({ newEmail: 'user@example.com' });checkAppTrackingTransparencyPermission
checkAppTrackingTransparencyPermission 섹션앱 트래킹 투명성 상태를 확인합니다.
iOS에서만 사용 가능합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.checkAppTrackingTransparencyPermission();console.log(result);requestAppTrackingTransparencyPermission
checkAppTrackingTransparencyPermission 섹션앱 트래킹 투명성 허용을 시스템 대화로 열어줍니다.
주의: 사용자는 장치 설정에서 추적 요청을 비활성화 할 수 있습니다, 애플의 문서를 참조하십시오.
iOS에서만 사용 가능합니다.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
const result = await FirebaseAuthentication.requestAppTrackingTransparencyPermission();console.log(result);타입 참조
타イトル ‘타입 참조’ApplyActionCodeOptions
타이트 ‘ApplyActionCodeOptions’export interface ApplyActionCodeOptions { /** * A verification code sent to the user. * * @since 0.2.2 */ oobCode: string;}ConfirmPasswordResetOptions
타이트 ‘ConfirmPasswordResetOptions’export interface ConfirmPasswordResetOptions { /** * A verification code sent to the user. * * @since 0.2.2 */ oobCode: string; /** * The new password. * * @since 0.2.2 */ newPassword: string;}ConfirmVerificationCodeOptions
타이트 ‘ConfirmVerificationCodeOptions’export interface ConfirmVerificationCodeOptions { /** * The verification ID received from the `phoneCodeSent` listener. * * The `verificationCode` option must also be provided. * * @since 5.0.0 */ verificationId: string; /** * The verification code either received from the `phoneCodeSent` listener or entered by the user. * * The `verificationId` option must also be provided. * * @since 5.0.0 */ verificationCode: string;}SignInResult
로그인 결과export interface SignInResult { /** * The currently signed-in user, or null if there isn't any. * * @since 0.1.0 */ user: User | null; /** * Credentials returned by an auth provider. * * @since 0.1.0 */ credential: AuthCredential | null; /** * Additional user information from a federated identity provider. * * @since 0.5.1 */ additionalUserInfo: AdditionalUserInfo | null;}CreateUserWithEmailAndPasswordOptions
생성자 사용자 이메일/암호 옵션export interface CreateUserWithEmailAndPasswordOptions { /** * @since 0.2.2 */ email: string; /** * @since 0.2.2 */ password: string;}FetchSignInMethodsForEmailOptions
이메일로 로그인 방법 가져오기 옵션export interface FetchSignInMethodsForEmailOptions { /** * The user's email address. * * @since 6.0.0 */ email: string;}FetchSignInMethodsForEmailResult
이메일로 로그인 방법 가져오기 결과export interface FetchSignInMethodsForEmailResult { /** * The sign-in methods for the specified email address. * * This list is empty when [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) * is enabled, irrespective of the number of authentication methods available for the given email. * * @since 6.0.0 */ signInMethods: string[];}GetCurrentUserResult
현재 사용자 결과export interface GetCurrentUserResult { /** * The currently signed-in user, or null if there isn't any. * * @since 0.1.0 */ user: User | null;}GetIdTokenOptions
ID 토큰 가져오기 옵션export interface GetIdTokenOptions { /** * Force refresh regardless of token expiration. * * @since 0.1.0 */ forceRefresh: boolean;}GetIdTokenResult
Section titled “ID 토큰 결과 가져오기”export interface GetIdTokenResult { /** * The Firebase Auth ID token JWT string. * * @since 0.1.0 */ token: string;}GetIdTokenResultOptions
Section titled “ID 토큰 결과 가져오기 옵션”export interface GetIdTokenResultOptions { /** * Force refresh regardless of token expiration. * * @since 7.4.0 */ forceRefresh: boolean;}GetIdTokenResultResult
Section titled “ID 토큰 결과 가져오기 결과”export interface GetIdTokenResultResult { /** * The authentication time in milliseconds since the epoch. * * This is the time the user authenticated (signed in) and not the time the token was refreshed. * * @since 7.4.0 */ authTime: number; /** * The ID token expiration time in milliseconds since the epoch. * * @since 7.4.0 */ expirationTime: number; /** * The ID token issuance time in milliseconds since the epoch. * * @since 7.4.0 */ issuedAtTime: number; /** * The sign-in provider through which the ID token was obtained. * * @since 7.4.0 */ signInProvider: string | null; /** * The type of second factor associated with this session, provided the user was multi-factor * authenticated (eg. phone, etc). * * @since 7.4.0 */ signInSecondFactor: string | null; /** * The entire payload claims of the ID token including the standard reserved claims as well as * the custom claims. * * @since 7.4.0 */ claims: Record<string, unknown>;}실질적인 출처
Section titled “실질적인 출처”이 페이지는 플러그인의 src/definitions.ts공개 API이 업스트림에서 변경될 때 다시 싱크를 실행하세요.
Getting Started에서 계속
Section titled “Getting Started에서 계속”이 기능을 사용 중이라면 Getting Started 인증 및 계정 흐름을 계획하고 싶다면 @capgo/capacitor-social-login for the implementation detail in @capgo/capacitor-social-login, @capgo/capacitor-passkey capgo의 구현 세부 사항에 대한 capacitor-passkey. @capgo/capacitor-native-biometric capgo/capacitor-native-생체인증 구현 세부 사항을 위해 Capacitor Capacitor Capacitor SSO (기업) 구현 세부 사항에 대한 자세한 내용입니다.