본문으로 바로가기
플러그인으로 돌아가기
@capgo/capacitor-firebase-authentication
튜토리얼
github.com/Cap-go에 의해

파이어베이스 인증

Capacitor의 파이어베이스 인증 플러그인

가이드

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);

전체 참조

이미지 사용하기 @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__ 구현 세부 사항에 대한 정보입니다.