ガイド
Firebase Authenticationのチュートリアル
@capgo/capacitor-firebase-authenticationを使用
Firebase Authentication用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の使用を継続してください。
あなたが「__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-firebase-authentication」を使用している場合 「capgo/capacitor-firebase-authentication」を使用して 認証とアカウントフローの計画を行う場合、Cloudflareで「__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-social-login」を接続してください。 「capgo/capacitor-social-login」の実装詳細については、Capacitorの「capgo/capacitor-social-login」を参照してください。 「capgo/capacitor-passkey」の実装詳細については、Capacitorの「capgo/capacitor-passkey」を参照してください。 「capgo/capacitor-native-biometric」の実装詳細については、Capacitorの「capgo/capacitor-native-biometric」を参照してください。 for the implementation detail in @capgo/capacitor-passkey, @capgo/capacitor-native-biometric for the implementation detail in @capgo/capacitor-native-biometric, __CAPGO_KEEP_0__ 2要素認証の実装詳細について SSO (Enterprise)の実装詳細について フッター