Richtlinie
Tutorial zu Firebase Authentication
Mit @capgo/capacitor-firebase-authentication
Plugin für Firebase Authentication für Capacitor.
Installieren
bun add @capgo/capacitor-firebase-authentication
bunx cap sync
Was diese Erweiterung bereitstellt
applyActionCode- Wendet eine Überprüfung code an, die dem Benutzer per E-Mail gesendet wurde.confirmPasswordReset- Führt den Passwortschutzprozess ab.confirmVerificationCode- Beendet den Telefonnummernüberprüfungsprozess.createUserWithEmailAndPassword- Erstellt ein neues Benutzerkonto mit E-Mail-Adresse und Passwort. Wenn das neue Konto erstellt wurde, wird der Benutzer automatisch angemeldet.
Beispiel für die Verwendung
applyActionCode
Wendet eine Überprüfung code an, die dem Benutzer per E-Mail gesendet wurde.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.applyActionCode({} as ApplyActionCodeOptions);
confirmPasswordReset
Führt den Passwortschutzprozess ab.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.confirmPasswordReset({} as ConfirmPasswordResetOptions);
confirmVerificationCode
Beendet den Telefonnummernüberprüfungsprozess.
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 Mit der Verwendung von @capgo/capacitor-firebase-authentication für die Planung der Authentifizierung und der Kontoflows, 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 Zweifaktor-Authentifizierung und SSO (Unternehmen) für die Implementierungsdetails in SSO (Unternehmen).