ガイド
Firebase認証のチュートリアル
capgoのcapacitor-firebase-authenticationを使用
CapacitorのFirebase認証プラグイン
インストール
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
__CAPGO_KEEP_0__:
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.confirmVerificationCode({} as ConfirmVerificationCodeOptions);
createUserWithEmailAndPassword
https://__CAPGO_KEEP_0__.com/Cap-go/__CAPGO_KEEP_1__-firebase/tree/main/packages/authentication
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.createUserWithEmailAndPassword({} as CreateUserWithEmailAndPasswordOptions);
ドキュメント: /docs/plugins/firebase-authentication/
- GitHub: https://github.com/Cap-go/capacitor-firebase/tree/main/packages/authentication
- 134+の生産用プラグイン