메인 콘텐츠로 건너뛰기
플러그인으로 돌아가기
@capgo/capacitor-firebase-authentication
튜토리얼
@capgo/capacitor-firebase-authentication

Firebase Authentication

Capacitor 플러그인 - Firebase Authentication

안내

Firebase 인증에 대한 튜토리얼

capgo와 capacitor을 사용하여 Firebase 인증

Capacitor 플러그인으로 Firebase 인증

설치

bun add @capgo/capacitor-firebase-authentication
bunx cap sync

이 플러그인은 다음을 제공합니다.

  • applyActionCode - 사용자에게 이메일로 보낸 인증 code을 확인합니다.
  • confirmPasswordReset - 비밀번호 초기화 과정을 완료합니다.
  • confirmVerificationCode - 사용자 전화번호 인증 과정을 완료합니다.
  • createUserWithEmailAndPassword - 이메일과 비밀번호를 사용하여 새로운 사용자 계정을 생성합니다. 새로운 계정이 생성된 경우 사용자는 자동으로 로그인됩니다.

예시 사용

applyActionCode

사용자에게 이메일로 보낸 인증 code를 적용합니다.

import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';

await FirebaseAuthentication.applyActionCode({} as ApplyActionCodeOptions);

confirmPasswordReset

비밀번호 초기화 과정을 완료합니다.

import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';

await FirebaseAuthentication.confirmPasswordReset({} as ConfirmPasswordResetOptions);

confirmVerificationCode

사용자 전화번호 인증 과정을 완료합니다.

import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';

await FirebaseAuthentication.confirmVerificationCode({} as ConfirmVerificationCodeOptions);

createUserWithEmailAndPassword

전체 참조

import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';

await FirebaseAuthentication.createUserWithEmailAndPassword({} as CreateUserWithEmailAndPasswordOptions);

__CAPGO_KEEP_0__:

Keep going from Using @capgo/capacitor-firebase-authentication

인증을 위해 사용 중인 경우 Using @capgo/capacitor-firebase-authentication Firebase 인증과 함께 @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, 두 단계 인증 두 단계 인증의 구현 세부 정보를 참조하십시오. SSO (기업) SSO (기업) 구현 세부 사항에 대해.