Skip to main content
プラグインに戻る
@capgo/capacitor-firebase-authentication
チュートリアル
@capgo/capacitor-firebase-authentication

Firebase Authentication

CapacitorはFirebase Authenticationのプラグイン

ガイド

Firebase Authenticationのチュートリアル

@capgo/capacitor-firebase-authenticationの使用

CapacitorのFirebase Authenticationプラグイン

インストール

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

フルリファレンス

Using @capgo/capacitor-firebase-authentication から続けてください。

If you are using Capgoの@capgo/capacitor-firebase-authentication を使用して Capgoの@capgo/capacitor-social-login の実装詳細はCapgoの@capgo/capacitor-social-login Capgoの@capgo/capacitor-passkey の実装詳細はCapgoの@capgo/capacitor-passkey Capgoの@capgo/capacitor-native-biometric の実装詳細はCapgoの@capgo/capacitor-native-biometric 二要素認証 の実装詳細は二要素認証、そして SSO (Enterprise) for the implementation detail in SSO (Enterprise).