Richtlinie
Tutorial zur Firebase-Authentifizierung
Mit @capgo/capacitor-firebase-authentication verwenden
Capacitor-Plugin für Firebase-Authentifizierung.
Installieren
bun add @capgo/capacitor-firebase-authentication
bunx cap sync
Was dieses Plugin enthält
applyActionCode- Sendet eine Bestätigung code an den Benutzer per E-Mail.confirmPasswordReset- Führt das Passwort-Restore-Prozess ab.confirmVerificationCode- Führt den Telefonnummer-Bestätigungsprozess ab.createUserWithEmailAndPassword- Erstellt ein neues Benutzerkonto mit E-Mail-Adresse und Passwort. Wenn das neue Konto erstellt wurde, wird der Benutzer automatisch angemeldet.
Beispielverwendung
applyActionCode
Sendet eine Bestätigung code an den Benutzer per E-Mail.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.applyActionCode({} as ApplyActionCodeOptions);
confirmPasswordReset
Führt das Passwort-Restore-Prozess ab.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.confirmPasswordReset({} as ConfirmPasswordResetOptions);
confirmVerificationCode
Führt den Telefonnummer-Bestätigungsprozess ab.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.confirmVerificationCode({} as ConfirmVerificationCodeOptions);
createUserWithEmailAndPassword
Erstellt ein neues Benutzerkonto mit E-Mail-Adresse und Passwort. Wenn das neue Konto erstellt wurde, wird der Benutzer automatisch angemeldet.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.createUserWithEmailAndPassword({} as CreateUserWithEmailAndPasswordOptions);
Vollständige Referenz
- GitHub: https://github.com/Cap-go/capacitor-firebase/tree/main/packages/authentication
- Dokumentation: /docs/plugins/firebase-authentication/
Weitermachen Sie mit der Verwendung von @capgo/capacitor-firebase-authentication
Wenn Sie die Verwendung von Die Verwendung von @capgo/capacitor-firebase-authentication um die Authentifizierung und die Kontoflussplanung vorzubereiten, verbinden Sie es mit @capgo/capacitor-social-login für die Implementierungsdetails in @capgo/capacitor-social-login, @capgo/capacitor-passkey für die Implementierungsdetails in @capgo/capacitor-passkey, @capgo/capacitor-native-biometric für die Implementierungsdetails in @capgo/capacitor-native-biometric, Zweifaktor-Authentifizierung für die Implementierungsdetails in der Zwei-Faktor-Authentifizierung und SSO (Unternehmen) für die Implementierungsdetails in SSO (Unternehmen).