가이드
Firebase 인증에 대한 튜토리얼
@capgo/capacitor-firebase-authentication 사용
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);
전체 참조
- GitHub: https://github.com/Cap-go/capacitor-firebase/tree/main/packages/authentication
- 문서: /docs/plugins/firebase-authentication/
capgo를 계속 사용하세요: @capgo/capacitor-firebase-authentication
__CAPGO_KEEP_0__를 사용 중이시면 @capgo/capacitor-firebase-authentication 인증 및 계정 흐름을 계획하고 연결하려면 @capgo/capacitor-social-login @capgo/capacitor-social-login의 구현 세부 정보는 @capgo/capacitor-social-login에서 확인할 수 있습니다. @capgo/capacitor-passkey @capgo/capacitor-passkey의 구현 세부 정보는 @capgo/capacitor-passkey에서 확인할 수 있습니다. @capgo/capacitor-native-biometric 구현 세부 정보에 대한 @capgo/capacitor-native-biometric 두 단계 인증 구현 세부 정보에 대한 두 단계 인증, 및 SSO (기업) 구현 세부 정보에 대한 SSO (기업).