안내
파이어베이스 인증에 대한 튜토리얼
@capgo/capacitor-파이어베이스-인증
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/
Using @capgo/capacitor-firebase-authentication에서 계속하세요.
만약에 사용 중이라면 @capgo/capacitor-firebase-authentication을 사용하고 있습니다. 인증 및 계정 흐름을 계획하고 연결하려면 @capgo/capacitor-social-login을 연결하세요. @capgo/capacitor-social-login의 구현 세부 정보를 참조하세요. @capgo/capacitor-passkey의 구현 세부 정보를 참조하세요. @capgo/capacitor-native-biometric의 구현 세부 정보를 참조하세요. @capgo/capacitor-native-biometric for the implementation detail in @capgo/capacitor-native-biometric, SSO (기업) SSO (기업) 구현 세부 정보를 참조하세요. SSO (기업) 구현 세부 정보를 참조하세요. SSO (기업) 구현 세부 사항에 대해.