ガイド
Firebase Authenticationのチュートリアル
Using @capgo/capacitor-firebase-authentication
Capacitor plugin for 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);
フルリファレンス
- GitHub: https://github.com/Cap-go/capacitor-firebase/tree/main/packages/authentication
- ドキュメント: /docs/plugins/firebase-authentication/
Using @capgo/capacitor-firebase-authentication から続けてください。
If you are using Capgoの@capgo/capacitor-firebase-authenticationを使用 Capgoの@__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-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) SSO (エンタープライズ) の実装詳細について。