가이드
Firebase 인증에 대한 튜토리얼
@capgo/capacitor-firebase-authentication 사용
Firebase 인증에 대한 Capacitor 플러그인
설치
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);
전체 참조
- GitHub: https://github.com/Cap-go/capacitor-firebase/tree/main/packages/authentication
- 문서: /docs/plugins/firebase-authentication/
이미지 사용하기 @capgo/capacitor-firebase-authentication
firebase-authentication을 사용 중이시면 Using @capgo/capacitor-firebase-authentication 인증 및 계정 흐름을 계획하고 싶으시다면 @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-social-login과 연결해 주세요. 자세한 구현 방법은 @capgo/capacitor-social-login에서 확인하실 수 있습니다. 자세한 구현 방법은 @capgo/capacitor-passkey에서 확인하실 수 있습니다. 자세한 구현 방법은 @capgo/capacitor-native-biometric에서 확인하실 수 있습니다. for the implementation detail in @capgo/capacitor-passkey, @capgo/capacitor-firebase-authentication @capgo/capacitor-firebase-authentication @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-firebase-authentication __CAPGO_KEEP_0__ 구현 세부 사항에 대한 정보입니다. SSO (기업) __CAPGO_KEEP_0__ 구현 세부 사항에 대한 정보입니다.